authenticate

abstract suspend fun authenticate(parameters: Passwords.AuthParameters): AuthResponse

Wraps the passwords authenticate API endpoint which validates the passwords token passed in. If this method succeeds, the user will be logged in, granted an active session

Return

AuthResponse response from backend

Parameters

parameters

required to authenticate


abstract fun authenticate(parameters: Passwords.AuthParameters, callback: (AuthResponse) -> Unit)

Wraps the passwords authenticate API endpoint which validates the passwords token passed in. If this method succeeds, the user will be logged in, granted an active session

Parameters

parameters

required to authenticate

callback

calls callback with AuthResponse response from backend