-
|
How to add google and facebook authentication? |
Beta Was this translation helpful? Give feedback.
Answered by
lucasbaze
May 17, 2021
Replies: 1 comment
-
|
I would recommend following the documentation located here: https://blitzjs.com/docs/passportjs as I find passport.js to be fairly easy to use and is already supported with Blitz. In particular with Google and Facebook you'll need developer accounts if you haven't already attained those and then follow their 0Auth app creation process. For google, this video should do the trick. You'll need to import This is my |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zwl1619
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would recommend following the documentation located here: https://blitzjs.com/docs/passportjs as I find passport.js to be fairly easy to use and is already supported with Blitz.
In particular with Google and Facebook you'll need developer accounts if you haven't already attained those and then follow their 0Auth app creation process. For google, this video should do the trick.
You'll need to import
npm install passport-google-oauth20as well.This is my
api/auth/[...auth].tsfile: