You can receive that information from the ClaimsPrincipal in authorized endpoint in your API. In that case you will get userId and for instance e-mail of the user directly from claims and you don’t even need the userId in frontend side. API will get that information when user calling this endpoint with Bearer access token will be successfully authenticated 😀
Thanks for the video Remik, nothing is unlcear after watching your toutrial, keep good work
I’m very glad to hear that ❤️
How can you suppress the 401 error in browser console
@@daniel49245you can take a look at the description, it’s unfortunately not possible
Can you make more projects of .net 8. ?
Of course, in the future I will create more videos related to building .net 8 projects 😁
Thanks a lot,, I think you should add role based video as well as part 2
I'm glad that you've liked the video 😁one of the upcoming videos will cover that topic
Greate!, But how can I read user data after login in front? like user id, to use with other endpoint
You can receive that information from the ClaimsPrincipal in authorized endpoint in your API. In that case you will get userId and for instance e-mail of the user directly from claims and you don’t even need the userId in frontend side. API will get that information when user calling this endpoint with Bearer access token will be successfully authenticated 😀