v1

latestSwagger 2.02026-07-14551943.9 KB
Sessions
HTML

Check if the user is logged in

Based on the browser/webserver session identifier, check if the user is logged in and return the associated username. This also returns additional information: the data for the login qr code and whether or not a loggin can be provoked directly from the server. Required permission: 'sessions'.

get/servers/{serverid}/sessions/

Path parameters

serveridstring required

Base64 encoded server id

Headers

X-noncestring required

Nonce to identify the browser/webserver session

Response

Current login status.

accountidinteger

Account id

canprovokeboolean

True if a login can be pushed from the server, false otherwise

hsidstring

Converted session id, used by the websockets

loggedinboolean

True if the user is loggedin, false otherwise

loginqrdatastring

Base64 encoded data that is represented in the login qr code

pkstring

Base64 encoded public key of the nextAuth app. This uniquely identifies the account on the nextAuth app, regardless of the username

useridstring

User name