requestResetSecret method

Future requestResetSecret(
  1. String scheme,
  2. String method,
  3. String value
)

Send a request for resetting an authentication secret

  • scheme - authentication scheme to reset ex: basic
  • method - method to use for resetting the secret, such as "email" or "tel"
  • value - value of the credential to use, a specific email address or a phone number

Implementation

Future requestResetSecret(String scheme, String method, String value) {
  var secret =
      base64.encode(utf8.encode(scheme + ':' + method + ':' + value));
  return login('reset', secret, null);
}