Skip to content

UseBearerToken

katanakit-js / useBearerToken

function useBearerToken(input): string | null;

Defined in: core/services/auth.service.ts:230

Reads the bearer token from anything carrying headers.

Returns null for a missing or malformed header rather than an empty string, so a caller cannot mistake “no credential” for “empty credential”.

Parameter Type
input AuthRequestLike

string | null