Reauthentication
The reauthenticate()
method lets you initiate a reauthentication flow before a sensitive operation. A Feedback Notification is displayed on failed reauthentication attempts.
The reauthenticated state of a session MUST be validated on server-side. See the Session Validator Client for details.
Usage
Name | Description |
---|---|
window.e.utils.v2.auth.reauthenticate() |
Lets you initiate a reauthentication flow before a sensitive operation. |
Return value
Type | Description |
---|---|
A promise that resolves to the result of the reauthentication process |
Example
window.e.utils.v2.auth.reauthenticate().then(result => {
if (!result) {
return;
}
return doSensitiveOperation();
});