Getting Started
NestJS hybrid auth is a dynamic nestjs module or assembling of individual modules written over passport authentication library which enables you to integrate social login in your nestjs application for various identity providers such as Facebook, Google, Instagram and many more.
#
PrerequisitesThe library requires you to install few peer dependencies
npm install @nestjs/passport passport reflect-metadata --save
OR
yarn add @nestjs/passport passport reflect-metadata
#
How To InstallYou can install nestjs hybrid auth module for just a single social identity provider or all the supported providers. Both of them are identical. I would recommend if you have lots of social logins to integrate, just use the all-in-one variant.
#
Install Hybrid Auth All In Oneyarn add @nestjs-hybrid-auth/all
OR
npm install @nestjs-hybrid-auth/all --save
#
Install Hybrid Auth For Individual Identity Provideryarn add @nestjs-hybrid-auth/<provider-name>
OR
npm install @nestjs-hybrid-auth/<provider-name> --save
Where provider-name
can be facebook
, google
, twitter
or anything supported.