Skip to content

Commit 149b031

Browse files
authored
Update Login.md
1 parent 9548d89 commit 149b031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Frontend/Login.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function checkForLogin() {
4444

4545
function login() {
4646
//optional -> prevents site reload
47-
chayns.addAccessTokenChangeListener(true, function() {
47+
chayns.addAccessTokenChangeListener(()=> {
4848
console.log('login successful');
4949
});
5050

51-
//reloads tapp after login
52-
chayns.login(['login=true']);
51+
//no reload tapp after login
52+
chayns.login();
5353
}
5454
```

0 commit comments

Comments
 (0)