retrieveTwoFactorRecoveryCodes method
Future<ClientResponse<TwoFactorRecoveryCodeResponse, Errors> >
retrieveTwoFactorRecoveryCodes(
- String userId
Retrieve two-factor recovery codes for a user.
@param {String} userId The Id of the user to retrieve Two Factor recovery codes. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<TwoFactorRecoveryCodeResponse, Errors>>
retrieveTwoFactorRecoveryCodes(String userId) {
return _start<TwoFactorRecoveryCodeResponse, Errors>()
.withUri('/api/user/two-factor/recovery-code')
.withUriSegment(userId)
.withMethod('GET')
.withResponseHandler(defaultResponseHandlerBuilder(
(d) => TwoFactorRecoveryCodeResponse.fromJson(d)))
.go();
}