I build a Rest-API which handle request by using JWT and refresh token. But i am not sure how to store it on client side.
Should I store both it in cookies with httponly flag?
Should i store both in cookies or one in local storage for example shared preference(Android App)?
I am very interested in what is the best practice to handle these token on client side?
Standard recommendations:
It requires a lot of discipline to do properly. My blog has posts and code samples you can run to understand this stuff. Maybe start here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With