keycloak-scim/js/apps/admin-ui/src/utils/getAuthorizationHeaders.ts

10 lines
190 B
TypeScript
Raw Normal View History

export function getAuthorizationHeaders(
accessToken?: string,
): Record<string, string> {
if (!accessToken) {
return {};
}
return { Authorization: `Bearer ${accessToken}` };
}