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 4373533 commit e6b1edeCopy full SHA for e6b1ede
Frontend/Login.md
@@ -26,7 +26,7 @@ It suppports 3 cases
26
}
27
```
28
29
-### JavaScript
+### JavaScript
30
```javascript
31
chayns.ready.then(function () {
32
checkForLogin();
@@ -43,7 +43,12 @@ function checkForLogin() {
43
44
45
function login() {
46
+ //optional -> prevents site reload
47
+ chayns.setAccessTokenChange(true, (envData) function {
48
+ console.log('login successful');
49
+ });
50
+
51
//reloads tapp after login
52
chayns.login(['login=true']);
53
- ```
54
+ ```
0 commit comments