TOTP
interface TOTP
The TOTP interface provides methods for creating and authenticating TOTPs for a member
Types
Link copied to clipboard
data class AuthenticateParameters(val organizationId: String, val memberId: String, val code: String, val setMFAEnrollment: SetMFAEnrollment? = null, val setDefaultMFAMethod: Boolean? = null, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)
A data class wrapping the parameters needed to authenticate a TOTP
Link copied to clipboard
data class CreateParameters(val organizationId: String, val memberId: String, val expirationMinutes: UInt? = null)
A data class wrapping the parameters needed to create a TOTP
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: TOTP.AuthenticateParameters): TOTPAuthenticateResponse
Authenticate a TOTP for a member
abstract fun authenticate(parameters: TOTP.AuthenticateParameters, callback: (TOTPAuthenticateResponse) -> Unit)
Create a TOTP for a member
Link copied to clipboard
Create a TOTP for a member