Solid JS + Auth (How to store the credential)
Q1:
What is the most secure and efficient way to store and use credentials in a SolidJS application without using solid-start?
I am considering using
- cookies only
- tokens only
- cookies + tokens
but I am unsure about which storage mechanism and libraries to utilize.
One thing I may want to avoid is to use session or local storage as it's not secure. But I realized that I can't persist the credentials.
May I know what kind of methods u prefer in client side authentication?
Q2:
Additionally, how can I perform Axios requests if I opt to use cookies, given the need for a token?
What is the most secure and efficient way to store and use credentials in a SolidJS application without using solid-start?
I am considering using
- cookies only
- tokens only
- cookies + tokens
but I am unsure about which storage mechanism and libraries to utilize.
One thing I may want to avoid is to use session or local storage as it's not secure. But I realized that I can't persist the credentials.
May I know what kind of methods u prefer in client side authentication?
Q2:
Additionally, how can I perform Axios requests if I opt to use cookies, given the need for a token?
