authenticate

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

Wraps the OTP authenticate API endpoint which validates the OTP 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: OTP.AuthParameters, callback: (AuthResponse) -> Unit)

Wraps the OTP authenticate API endpoint which validates the OTP 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