I'm making use of Identity for my Web API. I am successfully able to retrieve an access token by providing the username and password, but I'm not entirely sure what to do with it afterwards. I am thinking about storing it in a cookie, but I'm not sure whether or not this is bad practice. If it is, what would be better alternatives to this solution.
I don't want to let a user login every time he visits the website, so because of that I'm looking for ways of storing the access token. I have been searching the web (and SO) for solutions to this problem, but did not find a suitable answer. I found the following question that's similar, but did not get an answer: Where to store OAUTH2 access token in mvc5 web app.
Thanks in advance for your suggestions!