Are everyone in this video?
We will fix the getcurrentuser.
Before that, let me remove the server epochs.
Well, the reason we need to fix that because right here if I click on Get Profile and I will copy the
access token over here Buddhas.
And if I click send you can say I only update the name email or okay I want it to show on up information.
Okay.
So how we can do that.
We cannot move that inside the current user decorator okay.
Let me show you one strategy.
If you.
Insert a GA authentication graph.
We already attached the user okay.
Right here you might think we need to update the some biology but they or something like that over here.
And fixed the authentication service.
When we generate the access token.
Okay.
We will need to boot the biology over here.
But that's not the solution.
The reason because the chapter only contains some fields for authentication and authorization.
Okay.
It means in the user right here we only need to put the email arrow and ID okay.
And the name right here you you can think is not important.
We can remove that if you don't want.
Okay.
But I think the name right here is used very much in the application.
So we can feel free to put that.
Okay.
But don't try to put everything schema or property inside the user object.
It will not affect it at all.
So much for us.
So for that reason in this guy is the a user or a controller?
Instead of.
Right here.
Which creates the Soviet forget current user.
Okay.
Right now let's remove that.
Let me move this here and insert here.
I will create a service called AC get current user.
Okay.
And uh right here we save the current user.
But right now we remove the current user over here.
I use a bylaw.
Okay.
And from here let's create a user.
Click on this dot.
User model profile ID and model current user ID over here.
Okay.
And we can add a little bit of chat.
User.
Okay.
So we go back to the controller.
Let me get profile again.
Okay.
Right now it's already worked and that's what we want okay.
So I hope you understand this video I will see you in the next one.