How to secure sensitive endpoints using JWT in Node.js

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
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.
www.influxdata.com
featured
  • jwt-tutorial

    How to secure sensitive endpoints using JWT in Node.js

  • And finally, you have a secure REST API with JWT Authentication 🥳🥳🎉 Remember to see the GitHub repo to see all code. Github repo link

  • Prisma

    Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

  • For this tutorial, I will be using Express.js + Bcrypt + Prisma to create a simple SQLite database to manage the users.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • postman-app-support

    Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.

  • As you can see, this solution worked as expected, but it still has a big concern. The idea of using user email and checking their permission will not prevent malicious people from using an admin email, which can be easy to get with social engineering, and use programs like Insominia or Postman to get the same response as an unprotected endpoint.

  • frank_jwt

    JSON Web Token implementation in Rust.

  • We need a unique token that dynamically changes according to the user, where no one could decorate it like an email. And this is where JWT joins the party. 🎉

  • Express

    Fast, unopinionated, minimalist web framework for node.

  • For this tutorial, I will be using Express.js + Bcrypt + Prisma to create a simple SQLite database to manage the users.

  • 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

  • Rust GraphQL APIs for NodeJS Developers: Introduction

    7 projects | dev.to | 8 Feb 2024
  • Servidor para Blog, com Autenticação JWT - Node.Js & Mysql

    4 projects | dev.to | 1 Dec 2023
  • Creating a NodeJS project without frameworks in 2023

    5 projects | dev.to | 31 Oct 2023
  • Integrating Slonik with Express.js

    2 projects | dev.to | 30 Sep 2023
  • Complete Guide to Authentication in JavaScript

    6 projects | dev.to | 24 Aug 2023