The Scute Session Object
Scute Session represents the authentication tokens returned after successful authentication. This object contains JWT tokens used to authenticate API requests.Attributes
JWT access token for API authenticationExample:
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...JWT refresh token for obtaining new access tokens (only included if app has refresh_payload enabled)Example:
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...CSRF token for request validationExample:
a1b2c3d4e5f6g7h8i9j0Unix timestamp when the access token expiresExample:
1705318200Unix timestamp when the refresh token expires (only included if refresh token is present)Example:
1737940200ID of the authenticated user (not included for M2M sessions)Example:
usr_1234567890ID of the RSA key used to sign the JWT tokensExample:
key_abc123Client name for M2M (machine-to-machine) sessions onlyExample:
api-service-prodExample Scute Session Object
User Session (with refresh token)
User Session (without refresh token)
M2M (Machine-to-Machine) Session
JWT Token Payload
The access and refresh tokens contain the following claims:User ID (only in user sessions, not in M2M sessions)
Application ID
Workspace ID
Flag indicating this is a machine-to-machine session (only in M2M tokens)
Credential ID (only in WebAuthn sessions)
Token expiration time (Unix timestamp)
Unique token identifier for session management