File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ Python >= 3.8
39
39
Once connected, open the javascript console of your browser and run:
40
40
41
41
``` javascript
42
- var instance = window .location .pathname . split ( ' / ' );
43
- instance = instance[ 1 ] == " a " ? instance[ 3 ] : instance[ 1 ]
44
- fetch ( window . location . origin + " /service/init?customerHost= " + window . location . host + " &instanceSlug= " + instance + " & slug= " ) .then (data => { return data . json ()}). then ( res => {console .log (res .token )})
42
+ fetch ( window .location .origin + " /service/user/token " , {method : " POST " })
43
+ . then ( data => { return data . json ()})
44
+ .then (res => {console .log (res .token )});
45
45
```
46
46
47
47
This will generate your personal LumApps token that will be active for 60 minutes, and that we will use in the following steps
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ Python >= 3.8
39
39
Once connected, open the javascript console of your browser and run:
40
40
41
41
``` javascript
42
- var instance = window .location .pathname . split ( ' / ' );
43
- instance = instance[ 1 ] == " a " ? instance[ 3 ] : instance[ 1 ]
44
- fetch ( window . location . origin + " /service/init?customerHost= " + window . location . host + " &instanceSlug= " + instance + " & slug= " ) .then (data => { return data . json ()}). then ( res => {console .log (res .token )})
42
+ fetch ( window .location .origin + " /service/user/token " , {method : " POST " })
43
+ . then ( data => { return data . json ()})
44
+ .then (res => {console .log (res .token )});
45
45
```
46
46
47
47
This will generate your personal LumApps token that will be active for 60 minutes, and that we will use in the following steps
You can’t perform that action at this time.
0 commit comments