Skip to content

Commit

Permalink
send bearer token
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahugunajii committed Apr 11, 2024
1 parent 41a97a2 commit a67d0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/afdb/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const fetchUserSession = async (userId: number, isQuiz = false) => {
urlWithParams += '?quiz=true';
}

const response = await fetch(urlWithParams);
const response = await fetch(urlWithParams, getFetchConfig(bearerToken));
if (!response.ok) {
throw new Error('Failed to fetch sessions');
}
Expand Down

0 comments on commit a67d0d3

Please sign in to comment.