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