Checking if a token has expired

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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.

  • 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.

  • frank_jwt

    JSON Web Token implementation in Rust.

  • 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.

  • 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.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts