---
url: "https://vueda.dev/v3/reference/api/js/stores/storeUser/methods/reauthenticate.md"
title: "reauthenticate"
---

# reauthenticate

## Overview

Confirms the signed-in user's password again, then refetches the current user, which clears `authPendingFlow`.
Before rejecting with an `UnauthorizedError`, refetches the current user, so `authPendingFlow` names the flow
that the server now requires.

Completes the `reauthenticate` flow. The server does not count a password confirmation for a user with a
two-factor device; their flow is `mfa_reauthenticate`, which `twoFactorReauthenticate` completes.

## Signature

`reauthenticate(payload)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-payload">payload</span> | `object` | yes | The credentials to send. |

#### payload Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-payload-password">password</span> | `string` |  |  | The user's password. |

### Returns

`Promise`

## Source

`client/lib/stores/storeUser.js:384`
