File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ Open index.html to get the token locally.
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+
4+ < head >
5+ < title > Auth0</ title >
6+ < meta charset ="utf-8 " />
7+ < script language ="javascript " type ="text/javascript "
8+ src ="https://accounts-auth0.topcoder-dev.com/setupAuth0WithRedirect.js "> </ script >
9+ </ head >
10+
11+ < body >
12+ < script >
13+ window . onload = authSetup ;
14+
15+ function doLogin ( ) {
16+ window . location = './?retUrl=http://' + location . host
17+ }
18+
19+ function doLogout ( ) {
20+ window . location = './?logout=true&retUrl=http://' + location . host
21+ }
22+ </ script >
23+ < div >
24+ < p > Instructions:</ p >
25+ < p >
26+ Run this index.html as local server like - http://localhost:3000 and keep open in seperate tab for
27+ refreshing token.
28+ </ p >
29+ </ div >
30+ < p > ----------------------------------</ p >
31+ < div >
32+ < span > Click Here To Login! </ span > < span > < a href ="# " onclick ="doLogin(); "> Login</ a > </ span >
33+ </ div >
34+ < p > ----------------------------------</ p >
35+ < div >
36+ < span > Click Here To Logout! </ span > < span > < a href ="# " onclick ="doLogout(); "> Logout</ a > </ span >
37+ </ div >
38+ </ body >
39+
40+ </ html >
You can’t perform that action at this time.
0 commit comments