Open blackotruck opened 8 years ago
Hi,
I think the access_token
you are referring to is not a JWT (JSON Web Token).
But you may also retrieve from the token URL (personnaly, I use https://www.googleapis.com/oauth2/v4/token) another field called id_token
which is a JWT and from which you should be able to extract the exp claim.
@guillaumegarcia13 Well just as it stopped working out of nowhere, it started working again, google is sending me the right token, but i still don't know what happened
Hello!
I've been using this library for a while, everything was working fine, and still is, except for google oauth. Yesterday I noticed I couldn't loggin with google. so i started debbugging the issue and find out that problem is here
The issue is that google is now returning a token in the form
ya29..vgIJcUovcUTO9l6dCBZx17me-sagnLFfsO8unYBA0pQ3qOKWUUqBlLAW0elxuDBNTg
which generates["ya29", "", "vgIJcUovcUTO9l6dCBZx17me-sagnLFfsO8unYBA0pQ3qOKWUUqBlLAW0elxuDBNTg"]
causingvar base64Url = token.split('.')[1];
to receive an empty string.I have no ide why google is now sending this token faulty token, as i haven't change anything and this was working until last week...
Here is my server side code (using node)