videosphere
    Preparing search index...

    Function getSessionCookieOptions

    • Returns httpOnly session cookie options, including JWT/cookie lifetime. Override with JWT_SESSION_MAX_AGE_SECONDS (positive integer seconds). Cookie Max-Age matches the JWT lifetime, but browsers may not honor values beyond their own persistent-cookie caps.

      Returns {
          path: string;
          httpOnly: boolean;
          sameSite: "lax";
          secure: boolean;
          maxAge: number;
      }

      Cookie attributes used when issuing or clearing the session cookie.