Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Logging into NG
- Heathercat123
-
Scratcher
23 posts
Logging into NG
To log into NextGen (ng.scr.chipmunk.land), run this Javascript code:
id_token = {
"sub": 1,
"email": "info@gatesfoundation.org",
"given_name": "Rick",
"family_name": "Astley",
"picture": "https://trampoline.turbowarp.org/avatars/1",
"ux_types": ["teacher"]
}
access_token = {
"exp": 10000000000
}
refresh_token = access_token
function convert(x) {
return 'meow.' + btoa(JSON.stringify(x))
}
auth = {
'id_token': convert(id_token),
'access_token': convert(access_token),
'refresh_token': convert(refresh_token)
}
localStorage.setItem("auth", JSON.stringify(auth));
Creator of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
- Discussion Forums
- » Advanced Topics
-
» Logging into NG