UserClient

interface UserClient

User account management methods.

Functions

Link copied to clipboard

Deletes an authentication factor from the current user's account. The endpoint called depends on the type of the AuthenticationFactor passed:

Link copied to clipboard
abstract suspend fun getUser(): GetMeResponse

Fetches the current user's full profile from the Stytch backend. Calls the GET /sdk/v1/users/me endpoint. Requires an active session.

Link copied to clipboard
abstract suspend fun update(request: IUpdateMeParameters): UpdateMeResponse

Updates the current user's profile. Calls the PUT /sdk/v1/users/me endpoint. Requires an active session.