I am a Developer Advocate for Security in Mobile Apps and APIs at approov.io.
Another passion is the Elixir programming language that was designed to be concurrent, distributed and fault tolerant.
Location
Scotland
Education
Self teached Developer
Work
Developer Advocate for Mobile and API Security at approov.io
You can use localStorage to store it, but that would open your app to XSS attacks. A better choice is cookies.
Thanks for the update, but you can improve it a little more, by telling to set the
cookies with the httpOnly flag set, otherwise we are back to the same issue of Javascript be able to steal it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Updated the post. Thanks for pointing this out.
Thanks for the update, but you can improve it a little more, by telling to set the
cookies with the httpOnly flag set, otherwise we are back to the same issue of Javascript be able to steal it.