.net core/angular saving back-end data against a user


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;


Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?