UNPKG

voluptasmollitia

Version:
30 lines (17 loc) 1 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [reauthenticateWithCredential](./auth.reauthenticatewithcredential.md) ## reauthenticateWithCredential() function Re-authenticates a user using a fresh credential. <b>Signature:</b> ```typescript export declare function reauthenticateWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | user | [User](./auth.user.md) | The user. | | credential | [AuthCredential](./auth.authcredential.md) | The auth credential. | <b>Returns:</b> Promise&lt;[UserCredential](./auth.usercredential.md)<!-- -->&gt; ## Remarks Use before operations such as [updatePassword()](./auth.updatepassword.md) that require tokens from recent sign-in attempts. This method can be used to recover from a CREDENTIAL\_TOO\_OLD\_LOGIN\_AGAIN error.