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

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
abstract suspend fun create(parameters: TOTP.CreateParameters): TOTPCreateResponse
abstract fun create(parameters: TOTP.CreateParameters, callback: (TOTPCreateResponse) -> Unit)

Create a TOTP for a member