From dc744e2085257af6907e238513cd0bdb5a75fae2 Mon Sep 17 00:00:00 2001 From: bearismybrother Date: Thu, 24 Apr 2025 20:53:02 -0700 Subject: [PATCH] Changed authorization.js to match endpoint naming --- Authorization.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Authorization.js b/Authorization.js index d4a0d6b..1dfe06d 100644 --- a/Authorization.js +++ b/Authorization.js @@ -10,9 +10,13 @@ if (token) { async function validateTokenExpiration(token) { const response = await fetch( - `https://backend-aqzm.onrender.com/account/validateTokenExpiration?token=${token}`, + `https://backend-aqzm.onrender.com/account/validateToken`, { method: 'POST', + headers: { + Authorization: `Bearer ${token}`, + 'Content-Type': 'application/json', + }, } ); return response;