Session credentials for OAuth and token-based authentication
Contains the tokens and metadata needed for authenticated API requests. This interface is used to store and manage authentication state.
const session: SessionCredentials = { accessToken: 'your-access-token', refreshToken: 'your-refresh-token', authType: 'oauth', sub: 'user-123', iat: '1640995200', exp: '1640998800'}; Copy
const session: SessionCredentials = { accessToken: 'your-access-token', refreshToken: 'your-refresh-token', authType: 'oauth', sub: 'user-123', iat: '1640995200', exp: '1640998800'};
Access token for authentication
Refresh token for token refresh operations
Optional
Authentication type
Subject identifier (user ID)
Token issued at timestamp
Token expiration timestamp
Session credentials for OAuth and token-based authentication
Contains the tokens and metadata needed for authenticated API requests. This interface is used to store and manage authentication state.
Example