Views : 5,133
Genre: Education
Date of upload: Nov 8, 2022 ^^
Rating : 5 (0/173 LTDR)
RYD date created : 2024-05-10T18:56:32.12352Z
See in json
Top Comments of this video!! :3
Gio, what is your perspective on using JWT tokens for authentication instead of the session cookie approach that you have in these videos? We have a mobile application that will require authentication and we want to use JWT for the mobile app. There is also a web app and we don't want to have two different approaches within the same codebase.
|
A lot of refactoring in this lesson and I had to go slow to understand it al. Not always sure of why, but that is perhaps the difference in experience. You seem very capable and experienced in this way of coding.
And passing credentials when you only need email or password seems to obscure the purpose of some methods perhaps, but that is probably done this way since you know it is not an end-stage of it and will change to a DTO solution or will get more credentials than we use now.
I am getting to understand middle ware a bit now, it seems something like a wrapper function that basically uses the call stack. It's a nice solution.
But all in all a great inside in your way of looking at it and experiencing how you work. If this is the speed you can do it unprepared too, you're much faster in refactoring than I can see myself be. 🙂 Impressive.
I do find in OOP that the more a project grows, the more difficult it seems to keep everything straight (what is where) and the need of a good IDE makes a difference.
I have tried to understand and debug some WordPress plugins in OOP and when they were big, like The events calendar, it wasn't easy for me to get into the structure of it, so I would find where to go. I always felt in oop you need a roadmap to find out where to go. Perhaps now I have learned some design patterns in your course I would recognize more of it. I hope so.
This is a nice project to work on. Thank you for the lessons.
|
Awesome work As Always.And of course can not stop apllauding you fo this job. Just one question Gio, do you know what can be the reason that every change I do in the twig templates it just do not work. For example the logout ui is not being displayed in my server. I tried it in my own code, then I tried to take it from your github but it was not helpful. Do you have any idea?
1 |
Another video another greatness.
I have a question about login tocken.
We use cookies to add a remember me feature that keeps the user logged in after the browser is closed. we store user id or token reference to user in cookies.
but I can copy cookies form user's browser and paste it in my browser so I have access to user's acount .
what is the method to preventing login by copy login coockies?
I just need refrence or any artical about this topic
sorry for the poor english
|
Is there anything wrong if we start the sessions and save them immediately before creating a response like this?
$this->session->start();
$this->session->save();
$response = $handler->handle($request);
return $response;
What is the difference if we start the session, then create a response and only then save the sessions and return response?
|
😄😎5:20
|
@omaryahia
3 months ago
you improve the code structure many times more effort from your side but very educational for us thank you 🌟
1 |