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 4f60e5d commit 08af5a5Copy full SHA for 08af5a5
common/js/index-buttons.js
@@ -4,13 +4,13 @@ function register() {
4
alert(2); window.location.href = "/register";
5
}
6
document.addEventListener('DOMContentLoaded', async function() {
7
- if (!UI.authn.currentUser()) await UI.authn.checkUser();
8
- let user = UI.authn.currentUser();
+ if (!authn.currentUser()) await authn.checkUser();
+ let user = authn.currentUser();
9
10
// IF LOGGED IN: SET SolidServerRootRedirectLink. LOGOUT
11
if( user ) {
12
window.localStorage.setItem(keyname, user.uri);
13
- await UI.authn.authSession.logout();
+ await authn.authSession.logout();
14
15
else {
16
let webId = window.localStorage.getItem(keyname);
0 commit comments