Skip to content

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 ​

NameTypeRequiredDescription
payloadobjectyesThe credentials to send.

payload Properties ​

NameTypeRequiredDefaultDescription
passwordstringThe user's password.

Returns ​

Promise

Source ​

client/lib/stores/storeUser.js:384