Комментарии:
@LamaDev Is it still relevent and worthy to use this method in November 2023, sir??
ОтветитьI'm getting the following error when using passport-google-auth20: TypeError: OAuth2 is not a constructor. It's weird because Lama's repo works fine but mine doesn't even though I have the same versions and everything.
Ответитьanyone having issues with set-cookies in the browser ?
ОтветитьLogin sessions require session support. Did you forget to use `express-session` middleware?
getting this error please help
I don't really understand why do we create a google login route with a get not a post method ?
ОтветитьTypeError: req.session.regenerate is not a function
Ответитьthank you very much for sharing
ОтветитьpassportSetup is not required in index.js and still why have you written i dont know. its not in passport.js though but you have imported it inside index.js . WTF dude.
ОтветитьIn my case req.user is always undefined 😐
ОтветитьGreat, working locally,
But deployed then its not working checked everything.can i set cookies once authentication happens...
Many thanks for the course. Really like it.
ОтветитьIs recommended to use a jwt once the user has logged with any social media?
ОтветитьIf I want to do this without react how do I do it?😊
Ответитьall i can say is thank you
Ответитьpassport.deserializeUser() is not working and hence req.user is undefined
Please somebody help me
Perfect tutorial. Literally just started backend and this is so easy to follow and understand.
ОтветитьThis is a very resourceful video🥰🥰, however, if you get this error after clicking on the email you want to login/ signup with "req.session.regenerate is not a function", kindly uninstall the version of passport and install passport 0.5 because there is an issue in passport 0.6
run --->> npm uninstall passport
then run -->> npm install [email protected]
It worked for me, hope it does for u🙂🙂
Seriously your tutorials and indepth and simple to follow, kudos and thank you for all the hard work you have put in
Ответитьthanks a lot sir
ОтветитьMay I ask what colour theme are you using in this video?
ОтветитьHello sir, you did a great job explaining, really appreciate it.
I wonder how to connect loggedin user to MongoDB and connect passport with it
Idk if anyone can help me.. in the success route, my req.user is undefined
ОтветитьExcellent!
ОтветитьIn my app that I made same as yours, the user state is not being updated in the react components tree as seen in chrome dev tools. I can only see null when the user is logged in. even the console.log shows null value. and because of this, the navbar does not show the user being logged in. I'm using google sign in. There is no error in networks tab as well. the cookie is also getting set. What could be the problem? what can be done so that the user state is updated immediately? should there be more useEffect for refreshing the page?
ОтветитьThank you very much for to share info :)
Ответитьthanks
ОтветитьYour videos are just <3 <3 <3
ОтветитьCan you please list the extension you used for the shortcuts in vs code
ОтветитьWhat if your session coockie expires but user still on the website? How would you refresh the session? You are not showing this but this is the most important part.
ОтветитьFirstly, thank you for your tutorial. However, I've had a problem after I deploy my sever on Render, function doesn't work properly and its response is " Cannot get /auth/goole/callback" although I had configged like you. But if I request url "/auth/login/success", I can get profile of my GG account! It works perfectly on local btw. Please help me if you have some idea. Thank you again!
ОтветитьThank you so much for all you do. May God continue to strengthen you. We love you Lamadev!
ОтветитьI was looking for hours how to handle redirects when you have a react app connected but no solutions anywhere you literally saved my life!!!!
ОтветитьAwesome <3 Thank you so much :3
ОтветитьThanks😊😊😊
ОтветитьThanks
ОтветитьGreat video. I found that I couldnt use cookie-session and had to use express-session instead
Ответитьcan someone tell me about req.logout, i have some error here
Ответитьthanks so much !
ОтветитьLike shit where facebook?????
Ответитьworst tutorials bc
ОтветитьWhen authentication succeeds and successredirecturl redirects me, it does not get relevant cookies and info, my controller method does not execute. After i deleted that it worked as it should but it takes me to a black page and does not redirect me where i want
Ответитьcould you please make a tutorial for Authentication with email and password signin and signup api using MERN , please
ОтветитьVery very good videos!! Maybe too much use of pixel units instead of rems or percentages in the css. But a very well done and very instructive videos. Thanks! Keep doing them.
ОтветитьBest tutorial 🔥🔥
Ответитьthanks for the great tutorial, keep making videos like this
Ответитьlambda dev, the req.isAuthenticated returning false.
i want to protect my endpoint, only logged in user can access such endpoints, but on google auth it is not working.
Im just log in successfully but totally not authenticated via backend. even tho i send the profile at done(null, profile)