Reputation: 2552
I'm developing for the first time an Angular2 application that use an MVC .Net webapi for the backend logic.
My question is?
How can I manage user session and authentication in the application?
Thanks to support
Upvotes: 0
Views: 200
Reputation: 514
You can use bearer Token in Web API and store that in localstorage at client side send them in every request to webapi to validate that.
For token generation you can use this link
For Angular localstorage you can use this library
Upvotes: 3