Комментарии:
if you get "error": User.signup is not a function, i had "userSchema.static.signup" when typing static, intellisense might suggest singular "static" but the one used here is "statics".
ОтветитьBest video I’ve seen yet for this solution. Thanks.
Ответитьthank you so much!
Ответить[nodemon] app crashed - waiting for file changes before starting... :')
Ответитьit keep saying that User.signup is not a function in postman, anyone knows why
ОтветитьIs there a benefit to creating the statics signup method in Schema Model vs doing all of that in the user creation controller method?
Ответить3 am, binge watching this lol
Tysm man your videos are amazing as always
Should encrypting the password text be done in frontend first? Right now your frontend passes the plain text password to the signup function in the backend. Is it possible for hacker to get password a user inputs in the frontend before it gets passed to the backend?
Ответитьif you are having some errors like this.findOne is not a function, use normal functions don't use arrow functions, the this keyword binding differ
eddit : I wrote this comment before seeing the the end of the video it took a good 30min to realize my err but it was a good lesson lool
I believe that signup should return a 201 code since it creates a user.
Ответить❤
ОтветитьWhen I run it in thunder client (like postman) I'm getting error: User.signup is not a function
Please help??
Hello, I'm a bit confused about that: when i created static method like this, i was getting error where it says cannot read property of undefined reading (create), so i realised that the problem was in the "this" keyword mainly in arrow function , so i have to change arrow function to function declaration, everything is okay now to me, but im so interested why you didn't get any error like to me?
ОтветитьI'm stuck on this part. After installing bcrypt and making the changes to use it, i try npm run dev and there's an error that says 'Error: Cannot find module <file path>\bcrypt_lib.node' i tried reinstalling bcrypt, rebuilding the project, reinstalling node, using the code files provided by netninja and i can't progress. Can someone help?
Edit: I ended up using bcryptjs instead of bcrypt, it uses the same functions and syntax but without the dependencies that bcrypt needs. That fixed my compilation issue.
am getting this error, while trying to sign-up a new user on postman
": "data and salt arguments required". who can help with this
why to use bcrypt, if there is a standard nodejs lib crypto?
Ответитьi had a problem with adding a static to the userSchema, "this" doesn't works until i removed the arrow function. In the tutorial it works, anyone know the reason?
Ответитьthx
ОтветитьI am getting an error at userController:
const {email,password} = req.body
UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property 'email' of 'req.body' as it is undefined.
Please help out....
Hello, Shaun Thank you i always learn a lot with your videos and your mern satck videos are among them. Again Tank-you
ОтветитьWhy would you return the hashed password in the sign-up response?
ОтветитьFell like watching Brad Traversy.....
ОтветитьHello, Shaun, I wonder if you can build this app with Sveltekit server route and make it a tutorial, because with Sveltekit we don't need a separate backend such as express, hopefully Shaun take it into consideration 🙏
ОтветитьDo you plan on securing the the transport of the password/hash from browser to server?
Ответить🌟🎊😍
ОтветитьWe need advanced authentication have multiple user's
ОтветитьPlease can you add forget password
ОтветитьWhat an awesome tutorial 😍
ОтветитьGreat :) question, we're you planning to add Google authentication in addition to normal email auth? If so, you'll use passportjs or googleAuth from firebase? Authentication can get sooo complex and discouraging. passportjs documentation is also very badly organized, a real mess. Looking forward to the next lesson.
ОтветитьThanks brother! It is amazing!
ОтветитьI think authentication is the hardest part in fullstack project. Is it safe to make authentication like that. Do we need more advanced authentication technologies like Keycloak and ORY. So I wanted to learn more on these technologies but could not find good tutorial how to integrate them in backend and frontend side
Ответить