Packages@robojs/auth
getSessions()
Function: getSessions()
function getSessions(options?): Promise<DeviceSession[] | null>Lists all sessions stored on this device, including expired ones.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | ClientOptions | Overrides for base path, headers, or a custom fetch implementation. |
Returns
Promise<DeviceSession[] | null>
An array of device sessions, or null if the request fails.
Example
const sessions = await getSessions()