filmov
tv
Passwordless Authentication w/ Email, SMS & Github-OAuth in NextJS #9 - Using passportJS w/ graphql

Показать описание
In this part we will use GraphqlLocalStrategy from graphql-passport which is basically graphql implementation of PassportLocalStrategy. We will also serialize and deserialize users using the respective functions from passportJS library.
Note: I apologize for low sound quality throughout the playlist. Please use headphones.
Content
-------------
00:00 - Recap
00:35 - initPassport utilty function
02:20 - using GraphqlLocalStrategy class
06:47 - defining loginStrategies enum
11:45 - serialising user
13:35 - deserialising user
Tech Stack
------------------
Typescript
NextJS - For client-UI
NodeJS - For server side code
Nodemailer - For sending Email and OTP along with it
Twilio - For Sending SMS and OTP along with it
Github-OAuth - For OAuth2
MongoDB - Our database to store users and site data
Graphql - Our API layer
Tailwind-CSS - For styling purposes
PassportJS - For utility functions required for authentication on the server-side in both passwordless as well as Github-OAuth
graphql-passport - For making passportJS work with graphql since typically passportJS works well with REST API approach.
Apollo - For implementing graphql
-----------------
#react #typescript #passwordless #twilio #nodemailer #OAuth #NextJS #NodeJS #Node
Note: I apologize for low sound quality throughout the playlist. Please use headphones.
Content
-------------
00:00 - Recap
00:35 - initPassport utilty function
02:20 - using GraphqlLocalStrategy class
06:47 - defining loginStrategies enum
11:45 - serialising user
13:35 - deserialising user
Tech Stack
------------------
Typescript
NextJS - For client-UI
NodeJS - For server side code
Nodemailer - For sending Email and OTP along with it
Twilio - For Sending SMS and OTP along with it
Github-OAuth - For OAuth2
MongoDB - Our database to store users and site data
Graphql - Our API layer
Tailwind-CSS - For styling purposes
PassportJS - For utility functions required for authentication on the server-side in both passwordless as well as Github-OAuth
graphql-passport - For making passportJS work with graphql since typically passportJS works well with REST API approach.
Apollo - For implementing graphql
-----------------
#react #typescript #passwordless #twilio #nodemailer #OAuth #NextJS #NodeJS #Node