Validating the token on the back end

This commit is contained in:
2024-08-19 22:22:40 +02:00
parent 7ef68d030b
commit 4a756e850e
3 changed files with 69 additions and 3 deletions

View File

@ -75,7 +75,7 @@ export function checkAuth(api) {
const requestOptions = {
method: "POST",
Headers: myHeaders,
headers: myHeaders,
}
fetch(api + "/api/is-authenticated", requestOptions)