Prerequisites
Fastify version
4.27.0
Plugin version
7.8.1
Node.js version
20.10.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.3.1
Description
Usine userinfo with googleOauth2 gives a throws an error
"userinfo can not be used without discovery"
Google gives a id_token, which it suggests to validate locally & get user details from the same. Documentation from google is below
- https://developers.google.com/identity/openid-connect/openid-connect#validatinganidtoken
- https://developers.google.com/identity/openid-connect/openid-connect#discovery
Link to code that reproduces the bug
No response
Expected Behavior
googleOauth2.userinfo(token) should return the user object by locally parsing the jwt.
Prerequisites
Fastify version
4.27.0
Plugin version
7.8.1
Node.js version
20.10.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.3.1
Description
Usine
userinfowithgoogleOauth2gives a throws an errorGoogle gives a id_token, which it suggests to validate locally & get user details from the same. Documentation from google is below
Link to code that reproduces the bug
No response
Expected Behavior
googleOauth2.userinfo(token)should return the user object by locally parsing the jwt.