Packages@robojs/auth
clearSessions()
Function: clearSessions()
function clearSessions(options?): Promise<Response>Removes all sessions from the device and signs out completely.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | ClientOptions | Overrides for base path, headers, or a custom fetch implementation. |
Returns
Promise<Response>
The raw Response from the server.
Example
await clearSessions()
window.location.href = '/auth'