Improve auth handling of rest apis used in frontend for compatibility

This commit is contained in:
Christoph Kluge
2024-07-04 11:16:45 +02:00
parent 61eebc9fbd
commit 1072d7b449
5 changed files with 96 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
let jwt = "";
function getUserJwt(username) {
fetch(`/config/jwt/?username=${username}`)
fetch(`/userconfig/jwt/?username=${username}`)
.then((res) => res.text())
.then((text) => {
jwt = text;