CompleteRecovery()

Complete the account recovery process

Description

Once the account recovery process has been started using InitiateRecovery(), this method is used to complete the account recovery process.

Package Details

Interface

IAccountRecoveryManager

Syntax

AccountRecoveryManager.CompleteRecovery(int accountRecoveryId, string code, GCKey gcKey, AccountRecoveryAction action)

Returns

Task<AccountRecoveryStatusContext>

API

[POST] /api/v1/account/complete-recovery

  • code: [String]- Code used to retrieve the account that needs to be recovered.

  • mbun [String]- GCKey MBUN of the requesting GCKey user.

  • Issuer: [String] [Optional] - GCKey Provider of the requesting GCKey user

  • action: [String]- Account recovery action. By default the value is set to AccountRecoveryAction.Accept

Returns

Returns the Status of the Account Recovery. One of the following values:

  • AccountRecovered

  • Canceled

  • CodeExpired

  • InvalidCode

  • Failed

Example

var recoveryContext = await _accountRecoveryManager.CompleteRecovery(accountRecoveryId, code, gcKey, action);