Skip to content

@nogoo9/no-crd / index / extractTokenFromCookie

Function: extractTokenFromCookie()

extractTokenFromCookie(cookieHeader, cookieName?): string | undefined

Defined in: src/k8s/auth.ts:460

Utility to extract a cookie value from a Cookie header.

Parameters

cookieHeader

string | null | undefined

The raw Cookie header value.

cookieName?

string = "nocr_token"

The name of the cookie to extract. Defaults to "nocr_token".

Returns

string | undefined

The cookie value, or undefined if not found.