Level 53
I usually recommend storing tokens in a secure cookie as opposed to local storage. js-cookie package makes that very easy.
https://github.com/js-cookie/js-cookie
Pay close attention to the instructions for JSON data storage.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi, we have some api methods called from vue.js and some methods require authentication, we have called login methods which provide a token to access these methods,and this token can be accessed from page source is that secure, are we doing this right. or what is the secure way
Please or to participate in this conversation.