File

src/modules/session/entities/session.entity.intf.ts

Description

Interface that describes the information that is stored and available during the whole session of a user.

Index

Properties

Properties

currentLanguage
currentLanguage: string
Type : string

The current session's language

user
user: StarkUser
Type : StarkUser
Optional

The current StarkUser logged in the application (if there is one logged in), otherwise it will be undefined

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;
}

results matching ""

    No results matching ""