NodeJS API Authentication using JWT Tokens

In this article you will learn how to create login and generate JWT Token using HttpOnly Cookies with Node.js. We will Login using JWT( JSON Web Token ) which is the standard method for SPA Authentications. We will not use the traditional “Bearer method” but instead we will login using HttpOnly cookies which is a more secure authentication.

Source Code:
https://github.com/scalablescripts/node-auth

This video can be combined with other videos:

React and NodeJS JWT Authentication:
https://www.youtube.com/playlist?list...

VueJS and NodeJS JWT Authentication:
https://www.youtube.com/playlist?list...

Angular and NodeJS JWT Authentication: https://www.youtube.com/playlist?list...

NextJS and NodeJS JWT Authentication:
https://www.youtube.com/playlist?list...

NuxtJS and NodeJS JWT Authentication: https://www.youtube.com/playlist?list...

Svelte and NodeJS JWT Authentication:
https://www.youtube.com/playlist?list...

Check more tutorials: React and Next.js:

Different ways of creating React Apps:
https://scalablescripts.com/p/react-next

Vue 3 and Nuxt.js: Different Ways of Creating Vue Apps: https://scalablescripts.com/p/vue-nuxt

Get access to all my courses for 15$/month: https://scalablescripts.com/p/membership

--

--