videosphere
    Preparing search index...

    Function getTotpTrustCookieOptions

    • Cookie options for the TOTP trust cookie, mirroring session cookie attributes.

      Parameters

      • maxAgeSeconds: number

        Trust duration in seconds.

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

      Cookie attributes for NextResponse.cookies.set.