Skip to main content

Interface: SessionToken

Defined in: src/types/interfaces/auth.interface.ts:98

Session token response.

Remarks

Returned after successful authentication or token refresh.

Properties

accessToken

readonly accessToken: string

Defined in: src/types/interfaces/auth.interface.ts:106

JWT access token.

Remarks

Short-lived token (1 hour) for API access. Signed with ES256 algorithm.


expiresIn

readonly expiresIn: number

Defined in: src/types/interfaces/auth.interface.ts:120

Access token expiry in seconds.


refreshToken?

readonly optional refreshToken: string

Defined in: src/types/interfaces/auth.interface.ts:115

Refresh token for obtaining new access tokens.

Remarks

Single-use token that is rotated on each refresh. Only included if includeRefreshToken was true.


scope?

readonly optional scope: readonly string[]

Defined in: src/types/interfaces/auth.interface.ts:137

Granted scopes.

Remarks

May be a subset of requested scopes if user does not have all requested permissions.


tokenType

readonly tokenType: "Bearer"

Defined in: src/types/interfaces/auth.interface.ts:128

Token type.

Remarks

Always "Bearer" per RFC 6750.