Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / lib/testing / clearCookieHeader

Function: clearCookieHeader()

clearCookieHeader(): string

Defined in: src/lib/auth-internal/jwt.ts:316

Build a Set-Cookie header that clears the CF_Authorization cookie by setting it to an empty value with Max-Age=0.

Use this when a stale or invalid cookie needs to be removed so the user can re-authenticate.

Returns

string