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 getCurrentUser() → {Promise.<User>} Fetches the current user. View Source lib/client/UserClient.ts, line 71 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 81 Throws: Type: RequestTimeoutError Type: TechnicalError Returns: Type: Promise.<void>