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
Get the recovery codes for an authenticated member
Link copied to clipboard
Get the recovery codes for an authenticated member
Link copied to clipboard
abstract suspend fun recover(parameters: RecoveryCodes.RecoverParameters): RecoveryCodesRecoverResponse
abstract fun recover(parameters: RecoveryCodes.RecoverParameters, callback: (RecoveryCodesRecoverResponse) -> Unit)
Consume a recovery code for a member
Link copied to clipboard
abstract fun recoverCompletable(parameters: RecoveryCodes.RecoverParameters): CompletableFuture<RecoveryCodesRecoverResponse>
Consume a recovery code for a member
Link copied to clipboard
Rotate the recovery codes for an authenticated member
Link copied to clipboard
Rotate the recovery codes for an authenticated member