Provides session information.

interface ISessionContainer {
    accessToken: string;
    applicationId: string;
    id: string;
    isInitialized: boolean;
    serverCode: string;
    session: ISession;
    sessionToken: ISessionToken;
    user: IUser;
    initialize(session: ISession): Promise<void>;
    tryGetAccessToken(): null | string;
    tryGetSessionToken(): null | ISessionToken;
}

Hierarchy (View Summary, Expand)

Implemented by

Properties

accessToken: string

Token describing the session access data.

applicationId: string

ID of the application that opened the session.

id: string

Session ID.

isInitialized: boolean

Session has been initialized.

serverCode: string

Server code.

session: ISession

Opened session.

sessionToken: ISessionToken

Token describing the session.

user: IUser

Information about the current user.

Methods

  • Performs session initialization.

    Parameters

    • session: ISession

      The session to initialize.

    Returns Promise<void>

  • Token describing the session access data, or `null' if the session is not associated with the token.

    Returns null | string

  • Token describing the session, or `null' if the session is not associated with the token.

    Returns null | ISessionToken

MMNEPVFCICPMFPCPTTAAATR