NestJS API Authentication using JWT Tokens

Scalable Scripts
1 min readApr 29, 2021

--

In this article you will learn how to create login and generate JWT Token using HttpOnly Cookies with Nest.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/nest-auth

This video can be combined with other videos:

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

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

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

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

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

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

Other Courses:

Angular and NestJS: A Practical Guide with Docker: https://scalablescripts.com/p/angular...

React and NestJS: A Practical Guide with Docker: https://scalablescripts.com/p/react-n...

Vue 3 and NestJS: A Practical Guide with Docker: https://scalablescripts.com/p/vue-nes...

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

--

--

No responses yet