RecoveryCodes

interface RecoveryCodes

The RecoveryCodes interface provides methods for getting, rotating, and using recovery codes for a member

Types

Link copied to clipboard
data class RecoverParameters(val organizationId: String, val memberId: String, val sessionDurationMinutes: Int, val recoveryCode: String)

A data class wrapping the parameters needed to consume a recovery code

Functions

Link copied to clipboard
abstract suspend fun get(): RecoveryCodesGetResponse
abstract fun get(callback: (RecoveryCodesGetResponse) -> Unit)

Get the recovery codes for an authenticated member

Link copied to clipboard

Get the recovery codes for an authenticated member

Link copied to clipboard

Consume a recovery code for a member

Link copied to clipboard

Consume a recovery code for a member

Link copied to clipboard
abstract suspend fun rotate(): RecoveryCodesRotateResponse
abstract fun rotate(callback: (RecoveryCodesRotateResponse) -> Unit)

Rotate the recovery codes for an authenticated member

Link copied to clipboard

Rotate the recovery codes for an authenticated member