The NestJS application can easily be applied to other social platforms, such as Facebook, Google, etc. We’ll then learn how to protect private routes using guards and various authentication and authorization mechanisms provided in NestJS. The first one is authenticating a user through GitHub. Go ahead and install the Passport
Table of contents
PrerequisitesSetting up our NestJS projectRegistering an OAuth application with GitHubImplementing GitHub social loginOver 200k developers use LogRocket to create better digital experiencesSetting up JWT token strategy in our NestJS appUsing JWT tokens to protect private routesConclusionLogRocket : Full visibility into your web and mobile appsSort: