Constructor # new UserClient() View Source lib/client/UserClient.ts, line 11 Extends Client Members Type: HttpClient # client Inherited From: Client#client View Source lib/client/Client.ts, line 20 Methods # async getCurrent() → {Promise.<User>} Fetches the current user. See: https://docs.hanko.io/api/public#tag/User-Management/operation/IsUserAuthorized https://docs.hanko.io/api/public#tag/User-Management/operation/listUser View Source lib/client/UserClient.ts, line 85 Throws: Type: UnauthorizedError Type: RequestTimeoutError Type: TechnicalError Returns: Type: Promise.<User> # async logout() → {Promise.<void>} Logs out the current user and expires the existing session cookie. A valid session cookie is required to call the logout endpoint. View Source lib/client/UserClient.ts, line 95 Throws: Type: RequestTimeoutError Type: TechnicalError Returns: Type: Promise.<void>