voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
28 lines (16 loc) • 749 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [verifyPasswordResetCode](./auth.verifypasswordresetcode.md)
## verifyPasswordResetCode() function
Checks a password reset code sent to the user by email or other out-of-band mechanism.
<b>Signature:</b>
```typescript
export declare function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| auth | [Auth](./auth.auth.md) | The Auth instance. |
| code | string | A verification code sent to the user. |
<b>Returns:</b>
Promise<string>
the user's email address if valid.