Skip to main content

getAuthorizationHeader()

function getAuthorizationHeader(): string;

Gets the current authorization header value from session storage.

Returns

string

The authorization header string (e.g., 'Bearer token...') or empty string if not found

Example

const authHeader = getAuthorizationHeader();
// 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'