LogoRobo.js
Packages@robojs/auth

getSessions()

Function: getSessions()

function getSessions(options?): Promise<DeviceSession[] | null>

Lists all sessions stored on this device, including expired ones.

Parameters

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

On this page