Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify a google jwt? #47

Open
walshe opened this issue Sep 6, 2017 · 0 comments
Open

verify a google jwt? #47

walshe opened this issue Sep 6, 2017 · 0 comments

Comments

@walshe
Copy link

walshe commented Sep 6, 2017

Hi, I am using the google react plugin which adds a signin button to my app. When I click button, my app receives a Google JWT which I then send to my backend to verify and extract user info.

However, I am currently using googles 'tokeninfo' endpoint to verify it

e.g.

https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=${token}

My question is how can I use your library to verify a google jwt ? I think it needs to use googles public key to decrypt etc.. was hoping you might have an example ?

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant