UserManagement

interface UserManagement

The UserManagement interface provides methods for retrieving an authenticated user and deleting authentication factors from an authenticated user.

Functions

Link copied to clipboard
abstract suspend fun deleteFactor(factor: UserAuthenticationFactor): DeleteFactorResponse
abstract fun deleteFactor(factor: UserAuthenticationFactor, callback: (DeleteFactorResponse) -> Unit)

Deletes a UserAuthenticationFactor from the currently authenticated user

Link copied to clipboard
abstract fun getSyncUser(): UserData?

Get user from memory without making a network call

Link copied to clipboard
abstract suspend fun getUser(): UserResponse
abstract fun getUser(callback: (UserResponse) -> Unit)

Fetches a user from the current session