Users & Authentication (API) - [9] Build a Task Manager w/ Angular, NodeJS and MongoDB

preview_player
Показать описание
In this video we quickly create the Login page on the frontend and then implement users and authentication in our API. This is Part 9 of this series where we are building a Task Manager Application from scratch using the MEAN stack.

Рекомендации по теме
Комментарии
Автор

This video is so underrated. Very clearly and concisely explained JWT application with nodeJS. You earned a subscriber. Cant wait to complete the series.

venkatesh
Автор

The way you are doing this whole tutorial series is AWESOME! Actually. I only commented on this one, but it should comment in all. Great!

NiroshNeminda
Автор

Man you explain really well ANGULAR !! LOVE IT <3

mikitoguay
Автор

Awesome video, would it be possible for you to recreate this video but just a standalone reusable rest api for authentication using cookies to store the tokens?

jawad
Автор

I've managed to work through all my other bugs but am hung up on the last minute of this video, returning "User not found. Make sure refresh token [...]" I've also tried it with a cloned version of your repo to no avail, unfortunately. This leads me to believe it's a postman issue.

Any help is much appreciated!

EDIT: You have to be running `ng serve` on the frontend as well - come to find!

klhmia
Автор

43:40 if anyone is following along getting empty JSON object check your code line by line I have the same issue the user is in the Mongodb but I am getting bad request error.I have some typos in my code that's all.Thank you @Devstackr for this series

sheharyaarfurqan
Автор

I got "ReferenceError: _ is not defined" error.
I added "global._ = _; " to user.model and it fixed.

Happiesan
Автор

to any one new at 43.00 when you test the api in postman in app.js change statics to status the if you're using webstorm the error when come up as (node:3425) TypeError: res.statics is not a function

change res.statics(400).send(e); to res.status(400).send(e) and congrats on making it this far

dantewhite
Автор

At the 11:40 mark, does this mean that the Refresh tokens form a Stateful authentication (rather than a stateless auth with basic JWT)?

weinschelbarretto
Автор

I am getting an error on /users/login
users is not defined on e.message

muhammadsaleh
Автор

I get still the same error user is not a constructer please help me

kg_
Автор

How can i uploads products for every user? Personal user data? with jwt

NovatoWTF
Автор

Can someone tell me what to do if nothing is retutned in the console....when I send post to localhost:3000/users

Whyshhh_
Автор

You probably aren't looking at comments anymore but i have a strange problem from around 43:40 when trying to sign up, when i send a post request to /users with the email and password in the req body, i get a error code 400 with an empty json object returned and no error in the res.body or the terminal, but when i check mongodb compass, the user is there and it seems that it worked successfully, i suspect the error occurs when newUser.createSession() is called

jawad
Автор

woudnt it be better practice to take out all of the functions from user.model.js and put them in a separate userAuth logic file?

goodboy
Автор

Is there a way to change the login into a form in order to validate it?

AlexDiavolo
Автор

Hi, everyone! I have an issue around 55 minute of the video. With '/users/me/access-token'. Every time Im trying to GET user, i get 'User not found. Make sure that the refresh token and user id are correct'.
I already checked your code on a github, and just copied it. But still cant find the user.
Any suggestions? Thanks!

tubejamess
Автор

Hello... good tutoriel, very clear and explain.
i have implement it but x-refresh-token and x-access-token get !!!! the same value it is an issue??

boriscissoko
Автор

Hi, I want to use this refresh token authentication with authguard (route protection), how can I do that?

vexildar
Автор

const _=require('lodash'); why do we use this? what does _ mean?

weicao
join shbcf.ru