class-validator VS node-jsonwebtoken

Compare class-validator vs node-jsonwebtoken and see what are their differences.

class-validator

Decorator-based property validation for classes. [Moved to: https://github.com/typestack/class-validator] (by pleerock)

node-jsonwebtoken

JsonWebToken implementation for node.js http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html (by auth0)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
class-validator node-jsonwebtoken
1 15
5,476 17,366
- 0.5%
8.7 4.5
about 3 years ago 4 months ago
TypeScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

class-validator

Posts with mentions or reviews of class-validator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-06.

node-jsonwebtoken

Posts with mentions or reviews of node-jsonwebtoken. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-09.
  • JavaScript Libraries for Implementing Trendy Technologies in Web Apps in 2024
    12 projects | dev.to | 9 Apr 2024
    JsonWebToken
  • Node.js server-side authentication: Tokens vs. JWT
    2 projects | dev.to | 12 Jul 2023
    The code uses the jsonwebtoken library to generate and verify JSON Web Tokens. It provides two endpoints, /login and /profile.
  • Validate an OpenID Connect JWT using a public key in JWKS
    3 projects | dev.to | 30 Mar 2023
    Well, I found how an OpenID Connect id_token should be validated. It wasn't straightforward in my case: I had to do a lot of research to validate my id_token. Let's see how to make this easy using Node.js and the jsonwebtoken npm package made by Auth0.
  • Exploring the Most Commonly Used Folder Names in Popular NPM Packages
    12 projects | dev.to | 23 Feb 2023
    tests/test/__tests__: Writing tests is an important practice in software development, and in NPM packages you'll often see them stored in one of these folders. It can also be used to hold testing helpers and utility functions. Example from express.
  • Google Facebook LinkedIn Auth React NodeJS Tutorial
    2 projects | dev.to | 7 Jan 2023
    As we could see, we go through the same procedure for every provider. First, we obtain access_token and use it to receive the user's info. In Increaser, once the user is validated, the back-end generates auth data via jsonwebtoken library.
  • Library recommendation for JWT auth in GraphQL
    1 project | dev.to | 30 Jun 2022
    I'm currently looking for a way to sign and refresh my tokens. Most tutorials out there make use of jsonwebtoken another library that hasn't been updated in more than 2 years (except a commit to readme).
  • When Do I Need to Validate ID Tokens?
    1 project | /r/learnprogramming | 17 Apr 2022
    I'm trying to integrate microsoft sign in into my app. I've got a backend endpoint that handles the auth redirect and exchanges the auth code for an ID Token and an Access Token. I've heard that some OIDC implementations don't require validating an ID Token. Does my set up sound like it should be doing this? If so, how do I validate these tokens? I'm planning on using this library https://github.com/auth0/node-jsonwebtoken which allows you to do jwt.verify(token, 'secret') but I can't figure out what 'secret' to use. Is this my client secret? Or something else?
  • JWT.io signature validation
    2 projects | dev.to | 9 Feb 2022
    Some verify functions such as the popular Auth0 node-jsonwebtoken library requires the public key in PEM format. There are many libraries available to do this conversation.
  • Safely Handling JWTs
    3 projects | dev.to | 2 Feb 2022
    Don't write your own decode or verify functions, use a library like https://github.com/auth0/node-jsonwebtoken.
  • DOGECART an ecommerce platform
    6 projects | dev.to | 12 Jan 2022
    JWT

What are some alternatives?

When comparing class-validator and node-jsonwebtoken you can also consider the following projects:

vue-property-decorator - Vue.js and Property Decorator

jwt - JWT utilities module based on the jsonwebtoken package 🔓

routing-controllers - Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and Routing Controllers Framework. [Moved to: https://github.com/typestack/routing-controllers]

aws-appsync-community - The AWS AppSync community

vue-input-validator - 🛡️ Highly extensible & customizable input validator for Vue 2

Nodemailer - ✉️ Send e-mails with Node.JS – easy as cake!

jsonapi-serializer - A fast JSON:API serializer for Ruby (fork of Netflix/fast_jsonapi)

express-typescript-starter - 👍 Build APIs You Won't Hate In Node Js. ✍️ Developed by Gentrit Abazi.

typedi - Simple yet powerful dependency injection tool for JavaScript and TypeScript. [Moved to: https://github.com/typestack/typedi]

validated-types - Library for creating validated Typescript types for integers, floats, string and arrays

redux - A JS library for predictable global state management