Discuss Scratch

Notice

  • Found 1 posts.
Heathercat123
Replies: 1
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));