Skip to main content

Interface: SessionInfo

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

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:166

When authentication was performed.


isValid​

readonly isValid: boolean

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

Whether session is still valid (based on timeout).


strategyName​

readonly strategyName: string

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

Auth strategy used.