Open sabarivasanweb opened 7 months ago
That token is used to talk with Google APIs and not your own server, it is not your JWT secret (you never pass it or should).
Depending on your use case, store the incoming data from Google (such as the user profile) on your database and then create a JWT using your secret with the desired payload/data you want to pass down to the client (eg: a Frontend application).
That token is used to talk with Google APIs and not your own server, it is not your JWT secret (you never pass it or should).
Depending on your use case, store the incoming data from Google (such as the user profile) on your database and then create a JWT using your secret with the desired payload/data you want to pass down to the client (eg: a Frontend application).
Is that it. Is it possible to get more details or a related documentation about the token received?
Yes, if you do your own research you'll find all the details you need.
Search for "Google oAuth flow"
I am pretty new to hono and oauth. I am using this straight forward googleauth implementation
This is the sample token i am receiving
I am wondering if its a JWT or not. It supposed to be an access token but i cant verify it with my secret. I am receiving the user data correctly. Is it a valid token? if not how can i get valid JWT token?