LogoRobo.js
Packages@robojs/auth

clearSessions()

Function: clearSessions()

function clearSessions(options?): Promise<Response>

Removes all sessions from the device and signs out completely.

Parameters

ParameterTypeDescription
options?ClientOptionsOverrides 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'

On this page