UserManagement

interface UserManagement

Functions

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

Wraps the deleteEmailById API endpoint which deletes email from current user

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

Get user from memory without network call

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

Wraps the getUser API endpoint which return user from current session