Im using google oauth2 using the endpoint https://accounts.google.com/o/oauth2/v2/auth with the parameters
{
client_id:<my client id>,
redirect_uri:"http://localhost:3000/token",
response_type:"token",
scope:"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",
hd:<my schools email domain>
}
I get redirected to the redirect uri however the jwt I get in the redirected uri only contains 2 instead of 3 segments. Any advice?
edit: I have already diagnosed that this is not an issue with my code, but likely the parameters I'm using. This is the url that users are redirected to (I've included an api key that I will later revoke)
I am redirected to (I have censored everything except periods underscores and dashes - not sure if the dashes and underscores are important) http://localhost:3000/token#access_token=xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxx_xxxxxxxxxxx_x_-xx-xxxxxx-xxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxx&token_type=Bearer&expires_in=3599&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile%20openid&authuser=0&prompt=consent