Skip to content

Commit

Permalink
my head hurts
Browse files Browse the repository at this point in the history
  • Loading branch information
candywal committed Dec 8, 2023
1 parent a249acf commit 3cb7284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontend/src/pages/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
});

Expand All @@ -22,7 +22,7 @@ export async function isAuthenticated(token) {
const AuthPage = () => {
return (
<div>
<h1>You shouldn't have gotten here!</h1>
<h1>You shouldnt have gotten here!</h1>
<p>This page is not meant to be accessed directly.</p>
</div>
);
Expand Down

0 comments on commit 3cb7284

Please sign in to comment.