We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d90bb8 commit 0b41abbCopy full SHA for 0b41abb
src/account.html
@@ -138,7 +138,10 @@
138
139
if (PC) {
140
const res = await fetch(`https://auth-api.itinerary.eu.org/auth/verifyToken/${PC}`; // Decode the username using atob
141
+ const data = await res.json();
142
+ const username = atob(data.username);
143
localStorage.setItem('usernameEnc', username); // Store the original Base64-encoded username
144
+ localStorage.setItem('username', data.username);
145
localStorage.setItem('loggedIn', 'true');
146
window.location.href = 'index.html';
147
0 commit comments