working on authorization flow

This commit is contained in:
2024-07-23 15:56:16 +02:00
parent bb480b0b51
commit a277be5091
9 changed files with 58 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
var user = null;
async function handleUser(response){
if (response.status == UNAUTHORIZED) {
redirect('login.html?return_to='+encodeURI(window.location.href));
redirect('login.html?return_to='+encodeURIComponent(window.location.href));
return;
}
if (response.ok){