diff --git a/static/js/auth/login.js b/static/js/auth/login.js index e37efe0..a3f53e9 100644 --- a/static/js/auth/login.js +++ b/static/js/auth/login.js @@ -32,16 +32,14 @@ function responseSession(response) { function setSession(jwt) { var url = "/api/auth/session/set"; - var payload = { - "jwt" : jwt - }; + var payload = {}; sendHttpRequest(url, "POST", payload, function (error, response) { if (error) console.error("Error:", error); else { console.log("JSON Response:", response); responseSession(response); } - }, "application/json"); + }, "application/json", `Bearer ${jwt}`); } function responseAlert(response) {