coldbydefault-portfolio
    Preparing search index...

    Function hasValidAdminSession

    • Whether the request carries a valid admin session: signed, unexpired, and issued after the last logout. Fails closed when the revocation state can't be read, so a database outage never turns a revoked cookie back on.

      Parameters

      • request: NextRequest

      Returns Promise<boolean>