Class

UserClient

UserClient()

A class to manage user information.
Constructor

# new UserClient()

View Source lib/client/UserClient.ts, line 11

Extends

Members

Methods

# async getCurrentUser() → {Promise.<User>}

Fetches the current user.

View Source lib/client/UserClient.ts, line 117

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 127

Promise.<void>