From 3cb728495c71f8b89ac1aee9c59f851eff77570e Mon Sep 17 00:00:00 2001 From: Anshul Khandelwal Date: Thu, 7 Dec 2023 22:13:49 -0800 Subject: [PATCH] my head hurts --- Frontend/src/pages/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/src/pages/auth.js b/Frontend/src/pages/auth.js index 58be629..10c7263 100644 --- a/Frontend/src/pages/auth.js +++ b/Frontend/src/pages/auth.js @@ -9,7 +9,7 @@ export async function isAuthenticated(token) { // make axios get request sending cookie. const response = await axios.get('http://localhost:5000/api/verify_user', { headers: { - Authorization: 'Bearer ${token}', // Send the JWT token in the Authorization header + Authorization: `Bearer ${token}`, // Send the JWT token in the Authorization header }, }); @@ -22,7 +22,7 @@ export async function isAuthenticated(token) { const AuthPage = () => { return (
-

You shouldn't have gotten here!

+

You shouldnt have gotten here!

This page is not meant to be accessed directly.

);