9 lines
190 B
TypeScript
9 lines
190 B
TypeScript
export function getAuthorizationHeaders(
|
|
accessToken?: string,
|
|
): Record<string, string> {
|
|
if (!accessToken) {
|
|
return {};
|
|
}
|
|
|
|
return { Authorization: `Bearer ${accessToken}` };
|
|
}
|