vapor-community/Imperial

How to access JWT scopes?

xavierLowmiller opened this issue · 2 comments

I'm trying to use Imperial for Google Login with my app.

Is there any guide on how to obtain the mail address that is part of Google's JWT?

I can see that the token is sent as part of Google's payload, but is discarded as only the access token is stored in the session.

Is there a best practice on how to obtain the mail address?

0xTim commented

This is how I get the user's email when signing in with Google

Thanks! This helps me a lot!