@auth0/nextjs-auth0 - v4.25.0
    Preparing search index...

    Class AbstractSessionStoreAbstract

    Index

    Constructors

    Properties

    cookieConfig: CookieOptions
    rolling: boolean
    secret: string
    sessionCookieName: string

    Accessors

    Methods

    • calculateMaxAge calculates the max age of the session based on createdAt and the rolling and absolute durations.

      Parameters

      • createdAt: number

      Returns number

    • Deletes the backing-store record for the session identified by the request cookies, without needing a response object. Used by IPSIE ceiling enforcement where only reqCookies are available (e.g. getSessionWithDomainCheck).

      For stateless cookie sessions this is a no-op — the cookie is the session, and clearing it requires response cookies. Ceiling enforcement returns null on every read anyway, so the orphaned cookie is harmless until its natural max-age expires.

      Subclasses that own a backing store (stateful) SHOULD override this to delete the store record by session ID for hygiene.

      Parameters

      Returns Promise<void>