@andreabiagini5/applicazioni-e-servizi-web-project - v1.1.3
    Preparing search index...

    Interface Session

    Entity representing a user session.

    interface Session {
        get account(): Account;
        get createdAt(): Date;
        get expiration(): number;
        get expiresAt(): Date;
        get token(): string;
        isValid(): boolean;
    }
    Index

    Accessors

    • get expiration(): number

      Difference between the expiration date and the creation date.

      Returns number

      the difference in seconds

    Methods

    • Checks if the session is expired.

      Returns boolean

      true if the session is expired, false otherwise