Skip to content

Commit 2cd6431

Browse files
committed
fix: add 'Bearer' prefix to Authorization header in GraphQL function
1 parent dc9604b commit 2cd6431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function GraphQL<TResult, TVariables>(
1515
const session = await getSession();
1616

1717
const headers = {
18-
...(session ? { Authorization: session?.access_token } : {}),
18+
...(session ? { Authorization: `Bearer ${session?.access_token}` } : {}),
1919
...entityHeaders,
2020
};
2121

0 commit comments

Comments
 (0)