Hi,
I have a angular single page application with a .net core api back-end. I am using the lock login page on the front-end. I send an auth_token to the back-end to authenticate the user against the back-end API.
How can I view properties of the user in the back-end such as user name or email?
What is the best way to relate back-end data to the logged in user? would it be to save the user-id against a back-end record?
string userId = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.NameIdentifier).Value;
Thanks
Lewis