verifyPasswordResetCode method

Future<String> verifyPasswordResetCode(
  1. String code
)

Verifies a password reset code.

code The reset code from email.

Returns a Future containing the associated email.

Throws FusabaseAuthException if code is invalid.

Example:

String email = await auth.verifyPasswordResetCode('resetCode');

Implementation

Future<String> verifyPasswordResetCode(String code) async {
  await _initFuture;
  return await _authHelper.verifyPasswordResetCodeHelper(
    client: createClient(app),
    code: code,
  );
}