src/modules/session/entities/session.entity.intf.ts
Interface that describes the information that is stored and available during the whole session of a user.
Properties |
|
| currentLanguage |
currentLanguage:
|
Type : string
|
|
The current session's language |
| user |
user:
|
Type : StarkUser
|
| Optional |
|
The current StarkUser logged in the application (if there is one logged in), otherwise it will be |
import { StarkUser } from "../../user/entities";
/**
* Interface that describes the information that is stored and available during the whole session of a user.
*/
export interface StarkSession {
/**
* The current session's language
*/
currentLanguage: string;
/**
* The current {@link StarkUser} logged in the application (if there is one logged in), otherwise it will be `undefined`
*/
user?: StarkUser;
}