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 (
This page is not meant to be accessed directly.