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.