From a67d0d31331d6297dce72e781009e193dca732d7 Mon Sep 17 00:00:00 2001 From: Bahugunajii Date: Thu, 11 Apr 2024 16:48:58 +0530 Subject: [PATCH] send bearer token --- api/afdb/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/afdb/session.ts b/api/afdb/session.ts index 1ba0ef5..72c0d42 100644 --- a/api/afdb/session.ts +++ b/api/afdb/session.ts @@ -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'); }