authenticate

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

Authenticate a user given a method_id (the associated email_id or phone_id) and a code. This endpoint verifies that the code is valid, hasn't expired or been previously used. A given method_id may only have a single active OTP code at any given time, if a user requests another OTP code before the first one has expired, the first one will be invalidated.

Return

AuthResponse

Parameters

parameters

required to authenticate


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

Authenticate a user given a method_id (the associated email_id or phone_id) and a code. This endpoint verifies that the code is valid, hasn't expired or been previously used. A given method_id may only have a single active OTP code at any given time, if a user requests another OTP code before the first one has expired, the first one will be invalidated.

Parameters

parameters

required to authenticate

callback

that receives an AuthResponse