get

abstract suspend fun get(): B2BRecoveryCodesGetResponse

Retrieves the recovery codes for the current member's account. Calls the GET /sdk/v1/b2b/recovery_codes endpoint. Requires an active session.

Kotlin:

StytchB2B.recoveryCodes.get()

iOS:

let response = try await StytchB2B.recoveryCodes.get()

React Native:

StytchB2B.recoveryCodes.get()

Return

B2BRecoveryCodesGetResponse containing the member's current recovery codes.

Throws

StytchError

if the request fails or no active session exists.

if the coroutine is cancelled.