Skip to content
0:00 / 0:00

#jwt#graphql#react

JWT Authentication Node.js Tutorial with GraphQL and React

Ben Awad

491K subscribers • 5 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

263K views7 years ago2 recommendations

Web developmentSecurityNode.js, Deno and BunReactWeb and application security

Ben Awad demonstrates how to implement secure JWT authentication using Node.js, TypeScript, GraphQL, React, and PostgreSQL.

Learn how to add JWT authentication to your project with this fullstack tutorial using Node.js, Typescript, GraphQL, React, and PostgreSQL. Code: github.com/benawad/jwt-auth-example Links from video: apollographql.com/docs/react/advanced/boost-migration/#advan… github.com/newsiberian/apollo-link-token-refresh VSCode settings including snippets: gist.github.com/benawad/1e9dd01994f78489306fbfd6f7b01cd3#fil… Next.js version: youtube.com/watch?v=ZAsZ2hhdj-s ​ ---- Follow me online: voidpet.com/benawad #benawad

Why it's here

2 people recommend this

What people say. Recommended as a comprehensive guide for setting up JWT authentication with refresh tokens in a full-stack application.

Moments people linked to

u/RezaIqronoorin r/node • Recommends

How to handle auth with JWT in MERN stack the "safe" way? Hi, so basically I already understand the basic of auth using JWT but have no idea on how to do it the safe way . then I found this tutorial by benawad which is following this guide by hasura. ( By reading the comments I know that it's not best but aleast better? ) The problem is the guide uses GraphQL ( which I have no idea how to use it since I haven't got any reason to learn it ) and that I want to use REST instead. Oh and ben used typescript, which I have no experience at. Do you guys perhaps can lead me to some guide or article which they use the same approach as hasura but using MERN stack and REST?
52View on Reddit

u/_slimbradyin r/node • Recommends

…ee docker solutions, which I am not using, so not sure if that will be a pain. The other option I stumbled across that I am leaning towards right now is, setting up JWT authentication. I've worked with JTWs a lot in my work but never actually set up a proper instance of one myself, so it would be good to learn. I found Ben Awad's tutorial for it([video which seems to have great feedback. His stack in the tutorial is almost identical to mine as well, so it would be very easy to implement. It also wouldn't change my users table which is nice. My only concern here is, I've read that using JWTs and local storage for authentications has its own vulnerabilities. So I am just wondering if this i…