This is an incredible lesson. I've been looking for information of how to implement angular + django backend authentication for so long and only here I've found a comprehensive instraction and explanation. Thanks to the author.
@davicampos8023 жыл бұрын
Best teacher ever , I just love these angular /nestjs tutorials
@vircycure Жыл бұрын
I learnt many things from this video even though I am using angular from few years. Thanks a lot 🎉
@pemessh2 жыл бұрын
This channel is soooo underrated. Keep up the great work. Thank you so much for the great content.
@kyleryxn2 жыл бұрын
This is great, but I didn't see you use JWT once. The title is very misleading
@AboChicheKurdi Жыл бұрын
can you please explain how to use How can I use cookies sent from backend with the canActive guards ?
@nedzk7 ай бұрын
I have a doubt, all of these concepts worked in my localhost, but when I deployed it, the Login Controller (rule that set jwt cookie) doesn't work more. (I receive the cookies "__stripe_sid" and "__stripe_sid" instead jwt token ) =(
@blaze94522 жыл бұрын
In 23:30 it does not work with your angular course :(
@zocmihov2 жыл бұрын
Did you find a solution?
@denizyldz18602 жыл бұрын
Thank you so much! Clear explanation. I really like it
@mikha28802 жыл бұрын
Property 'form' has no initializer and is not definitely assigned in the constructor.
@JEBJOSH2 жыл бұрын
use form!: FormGroup; add the !
@btryx93782 жыл бұрын
turn of the strict mode in the tsconfig.json file
@taamcyat2 жыл бұрын
Exactly what i needed! Great work 👏
@ardilawar66 Жыл бұрын
Excellent work! Keep it up!😉
@isadora-lt6ns Жыл бұрын
This video is so good, you helped me a lot!! thank you so much!
@rebecaelida954 Жыл бұрын
wow this was very great! thank you so much
@jonathancolorado29982 жыл бұрын
Excelent great Teacher are you. Thanks
@neoszweb2 жыл бұрын
Thank you so much for your tutorials. They are very precious! It seems when I try to call the /api/user endpoint, the cookie is not correctly retrieved from the request and it returns null all the time. Any idea?
@aliyahturky52232 жыл бұрын
hii did you find a solution for that problem ?
@mcaddit68022 жыл бұрын
same problem
@erdavog8 ай бұрын
HI!!, I have a question, when i use postman to test the login it works perfectly, i can see the cookie, but when I tried to login through the front end using angular sending the required data, it works but i could not see the cookie created in the front end port, i followed your tutorial for django and it is the same as yours. Thank you
@prashantrao94563 жыл бұрын
when I login there is no cookie. I have set httponly:true in set_cookie in django. Its working in postman but not Angular. Can you explain why?? And I can see the cookie in network tab and there is a warning with it. which says- this set-cookie didn't specify a samesite attribute and was default to samesite=lax nd was blocked because it came from cross-site response which is not the response to top level navigation.the set cookie had to have been set with samesite=none to enable cross site usage. And I set samesite=None in django.. but still got the same error.
@ScalableScripts3 жыл бұрын
Did you add credentials: true ?
@prashantrao94563 жыл бұрын
@@ScalableScripts yes... I did the same as you.. And when i run it in Firefox i got the error to add "secure" Parameter in set_cookie. And the previous error is in chrome.
@prashantrao94563 жыл бұрын
@@ScalableScriptsIt worked....When set SameSite="none" . It had to be in " " .the emitters also working. But still i get no cookies in application tab.
@alexanderpolyakov92173 жыл бұрын
I have a similar problem, I don't get cookies on the application tab. go session options: Secure: false, HttpOnly: true, SameSite: http.SameSiteDefaultMode,
@Barricadez3 жыл бұрын
Yes this is the biggest problem with this code
@andreyklepikov70843 жыл бұрын
Thank you so much! Great tutorials
@skalippanbalippan69723 жыл бұрын
I am getting this error when I run the cmd: docker exec backend /bin/sh start.sh SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve (SQL: select * from information_schema.tables where table_schema = auth and table_name = migrations and table_type = 'BASE TABLE')
@oax973 жыл бұрын
Same here
@rohithkoteval17852 жыл бұрын
@@oax97 same here how did you ovecome this?
@mike1998623 жыл бұрын
Very useful videos, thank you so much!
@juanarango4917 Жыл бұрын
really really nice, thanks man!
@izzyblackout10903 жыл бұрын
thank you for this tutorial. Really helpful
@amlshohdy64133 жыл бұрын
Excellent. You are the best Thanks a lot Can you make a video about auth guard?
@emreaka39652 жыл бұрын
Thanks ^^
@aissatouseye19582 жыл бұрын
when i set with credential to true i had cors errors. I dont have solved it yet . Then i used HttpClient , and Headers but i have 400 error code . But i my postman login the token comes but not in my angular projet . my mind is aching , can you please help me out
@pankajpawar28583 жыл бұрын
Awesome Tutorial... but, i have few questions. if we store token in httponly cookie then do we need to refresh the token ? and could you tell that here we using cookie time 1 day This is cookie expiry time, this is not token expiring time, Because, if i use jwt Token instead of sanctum Token in cookie then which time i used to check validity of token. cookie time or token time ? And Is sanctum token has no expiring time like JWT Token ? Pls Answer Thanks.
@FranBoy73 жыл бұрын
Nice video!!! One question, can you do a route guard? Thanks
@user-ns3zu7jc7m3 жыл бұрын
Hello. I'm new to Angular. I need to make an asynchronous validator for email on frontend. It will check in the database whether there is a user with such an email or not, if there is, then do not register. I think there should be another @Get('users') method on the backend that returns all users, after which it should be accessed on the frontend? Help me with some advice.
@daviddonadze2212 жыл бұрын
Thank you so much
@chiranshuadik98183 жыл бұрын
Good tutorial! I read that we should not subscribe to EventEmiitters in angular. Can we just use session variables instead? can you please elaborate?
@dhawalparmar71172 жыл бұрын
Yeah you can use localstorage session
@haruboss_2 жыл бұрын
hey, I liked your code extantion for fast development without syntax error, can you please share the name of angular extention with me, please please ..
@thaminduKavinda2 жыл бұрын
Wow man, these tutorials really help your explanation is very good. keep it up. 🤟 The cookie is not created in the browser (please help)
@isaquiassebastiaomarques25292 жыл бұрын
The same with me! Did you found the solution?
@emreaka39652 жыл бұрын
@@isaquiassebastiaomarques2529 backend's and frontend's url scheme must be the same. for example both should be HTTPS or HTTP. If this is not possible, you should set SameSite value to "none".
@user-ob4ve4cv5v2 жыл бұрын
After I wrote this.http.post(...) in function submit, I got Unknown Error.
@netanelarye75472 жыл бұрын
its help me so much
@emirmustafoski24053 жыл бұрын
Hello, Why we post register to localhost:8000, Everytime i want to register i have Eroror: Connection Refused
@ScalableScripts3 жыл бұрын
You need to build the backend or use the docker container. Check the description of the video and select the backend that you want
@jawhermahmoudi86493 жыл бұрын
thanks
@ignacioruiz70943 жыл бұрын
How can I use with canActivate?
@mcaddit68022 жыл бұрын
is auth guard, have to generate guards
@rezanrasoul2286 Жыл бұрын
@@mcaddit6802 can you please explain more how can I do that?
@Pelakk2 жыл бұрын
nie dziala
@NebihTV2 жыл бұрын
you are 100% albanian
@ahmjksjssd2 жыл бұрын
when i use { withCredentials: true } and look the cookies, angular still does not save the coockies i dont know why, any help?