2022-08-04 11:08:11 +00:00
|
|
|
export function getAuthorizationHeaders(
|
2023-07-11 14:03:21 +00:00
|
|
|
accessToken?: string,
|
2022-08-04 11:08:11 +00:00
|
|
|
): Record<string, string> {
|
|
|
|
if (!accessToken) {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
|
|
|
return { Authorization: `Bearer ${accessToken}` };
|
|
|
|
}
|