Our great sponsors
-
google-api-nodejs-client
Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Using Nodejs Google Api Client and successfully get a refresh and access token on login. However, I'm running into issues when the access token expires after 1 hour.
I would look into more examples of people using that library since I don't think you're using it correctly. And where exactly are you storing the tokens? You can usually decode an access token with a jwt lib and there should expiry, issued at info, etc. if you really need to manually check. Which would allow you to check. Paste the token into http://jwt.io and you should be able to see the (decoded) structure.