verifyPasswordResetCode method Null safety

Future<String> verifyPasswordResetCode(
  1. String code

Checks a password reset code sent to the user by email or other out-of-band mechanism.

Returns the user's email address if valid.

A FirebaseAuthException maybe thrown with the following error code:

  • expired-action-code:
  • Thrown if the password reset code has expired.
  • invalid-action-code:
  • Thrown if the password reset code is invalid. This can happen if the code is malformed or has already been used.
  • user-disabled:
  • Thrown if the user corresponding to the given email has been disabled.
  • user-not-found:
  • Thrown if there is no user corresponding to the password reset code. This may have happened if the user was deleted between when the code was issued and when this method was called.


Future<String> verifyPasswordResetCode(String code) {
  return _delegate.verifyPasswordResetCode(code);