Skip to main content
Version: 1.x

Interface: SessionInfo

Defined in: src/auth/auth-types.ts:175

Information about the current authentication session.

Remarks

Tracks when authentication was performed and whether the session is still considered valid based on timeout configuration.

Example

const session: SessionInfo = {
authenticatedAt: Date.now(),
strategyName: 'onprem',
isValid: true,
};

Properties

authenticatedAt

readonly authenticatedAt: number

Defined in: src/auth/auth-types.ts:177

When authentication was performed.


isValid

readonly isValid: boolean

Defined in: src/auth/auth-types.ts:181

Whether session is still valid (based on timeout).


strategyName

readonly strategyName: string

Defined in: src/auth/auth-types.ts:179

Auth strategy used.