The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > verifyPasswordResetCode

verifyPasswordResetCode() function

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

Signature:

export declare function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;

Parameters

Parameter Type Description
auth Auth The Auth instance.
code string A verification code sent to the user.

Returns:

Promise<string>

the user's email address if valid.