voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
31 lines (18 loc) • 1.11 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [reauthenticateWithPhoneNumber](./auth.reauthenticatewithphonenumber.md)
## reauthenticateWithPhoneNumber() function
Re-authenticates a user using a fresh phne credential.
<b>Signature:</b>
```typescript
export declare function reauthenticateWithPhoneNumber(user: User, phoneNumber: string, appVerifier: ApplicationVerifier): Promise<ConfirmationResult>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| user | [User](./auth.user.md) | The user. |
| phoneNumber | string | The user's phone number in E.164 format (e.g. +16505550101). |
| appVerifier | [ApplicationVerifier](./auth.applicationverifier.md) | The [ApplicationVerifier](./auth.applicationverifier.md)<!-- -->. |
<b>Returns:</b>
Promise<[ConfirmationResult](./auth.confirmationresult.md)<!-- -->>
## Remarks
Use before operations such as [updatePassword()](./auth.updatepassword.md) that require tokens from recent sign-in attempts.