0

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

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.