Home > @firebase/auth > reauthenticateWithPhoneNumber
reauthenticateWithPhoneNumber() function
Re-authenticates a user using a fresh phne credential.
Signature:
export declare function reauthenticateWithPhoneNumber(user: User, phoneNumber: string, appVerifier: ApplicationVerifier): Promise<ConfirmationResult>;
Parameters
Parameter | Type | Description |
---|---|---|
user | User | The user. |
phoneNumber | string | The user's phone number in E.164 format (e.g. +16505550101). |
appVerifier | ApplicationVerifier | The ApplicationVerifier. |
Returns:
Promise<ConfirmationResult>
Description
Use before operations such as updatePassword() that require tokens from recent sign-in attempts.