Wednesday, 24 May 2017

How to refresh a Google OAuth2 id_token on node?

I have a React app the logs into YouTube (in readonly mode). It automatically creates a user on log in on my REST Node/Express server. I'm trying to add in authentication for the server, and I'm trying to use the tokenId I get from Google to authenticate. Essentially I'm following these instructions here. The problem I'm running into is that the id_token expires after an hour, so it becomes useless after then.

So, how do I get a token that can be used to authenticate a user on the server after initial login?



via baron816

No comments:

Post a Comment