getActiveSessionsByMarker
Getting active user sessions data. It returns a Promise promise that resolves to active user sessions data object.
Description
AuthProvider.getActiveSessionsByMarker(
marker*);
Parameters schema
Schema
marker(required): string
The text identifier of the authorization provider
example: "email"
Examples
Minimal example
const response = await AuthProvider.getActiveSessionsByMarker('email');
Example response
[
{
"deviceInfo": {
"os": "Win32",
"browser": "Node.js/22",
"location": "en-US"
}
}
]
Response schema
Schema: IActiveSession[]
deviceInfo: object
Information about the device used in the active session.
example:
{
"os": "Win32",
"browser": "Node.js/22",
"location": "ru-RU"
}
deviceInfo.os: string
The operating system of the active session.
example: "Win32"
deviceInfo.browser: string
The browser used in the active session.
example: "Node.js/22"
deviceInfo.location: string
The location of the active session.
example: "ru-RU"