Are everyone in this video?
We need to fix one more work related to the sign up and sign in.
Okay, and this is just the optional because when we fix this book are not it doesn't really matter.
Okay?
But if we fix that book, we will mark the foreign developer will be easier in the future.
Okay, so what is the book you can say when I say, what about I want to return from my own data over
here, the avatar URL and cover photo, right.
And also the biology over here.
So that's what I want right now.
So in order to do that, what we need to do after we generate the JSON web token, what we need to do.
We need to create one more user service over here.
Okay.
Make sure you inject that and call the function to get current user and pass the user ID from here to
here.
And we will.
Got that.
Now as you can see we already have a function to get the current user over here.
You can say okay these are the get current user.
We need to change a little bit.
We don't need to route the current user anymore.
Is that up?
You just need to put the user ID over here and the user ID over here.
Okay.
And uh, inside our.
And when we change inside the service module we change that into the controller or also write.
He found a user controller right here.
These are the getcurrentuser.
Here.
We need to put the the ID over here.
Okay, so with that what we will have the frontend developer easier okay.
Make sure we remove the response user over here.
And so after we already fixed that inside authentication controller inside the response we we don't
need to use the response authentication DTO anymore.
Instead you just need to call the response user DTO directly and it will return everything for you.
Okay.
So that's for the work.
It will help the developer easier to handle the authentication in later.
So that's it for the video and I will see you in the next.