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

9 lines
190 B
TypeScript

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