Function: getBearerToken()
getBearerToken(
req):string|undefined
Defined in: auth/src/auth/shared.ts:436
Extracts the raw token from an Authorization: Bearer <token> header (RFC 6750 §2.1), or undefined if
the header is absent or uses a different scheme. Unlike getBasicData(), the value is returned as-is —
a bearer token is opaque to this function, not base64-encoded id:password credentials.
Parameters
req
HttpRequest
The request to extract the bearer token from.
Returns
string | undefined