Reputation: 61
I get a token from an autorization server that should be called only if the token expires. So I have to store that token somewhere on my client side. the problem is, I don't have a database to put it into, and I don't know if using system files is a good idea. I need your help to tell me what is the best way to store this token ?
Upvotes: 0
Views: 146
Reputation: 404
You can save authentication information in the browser using cookies. Many modern websites using cookies to store token. If you use cookies the browser will automatically send the authentication information with every request to the API. This can be convenient so long as you know it's happening.
Upvotes: 1