From the course: Mastering Nest.js: Build Scalable Applications with Mastery in Nest.js Framework

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Section introduction

Section introduction

In this section, we are going to implement the authentication functionality for the MyStore app. First, let me show you what kind of authentication we will implement on the project. If you take an example of e-mail services, or you register on any banking or e-commerce site or application, you must have seen that there are certain functionalities which work when you are a registered user, that is when you login. It means you have to register or sign up for the first time and then you have to log in yourself with valid credentials that is username and password or maybe an OTP to work with the application or website. So you as a user is authenticated that is approved by the application so that you have access to certain links or functionalities and the same we will learn with the sample application we are creating. Here when the application starts, all the links and functionalities are available. But we need to restrict certain functionalities and make it available only when the user is…

Contents