What do you think about firebase auth being in localStorage by default?
localStorage
Although can be set in cookies as well. I tried, but I failed...
Hmm ideally you donβt wanna be putting any sensitive data in local storage as its openly accessible via JS. What problems did you have with configuring your session via cookies?
csrfToken
Encryt both fields to jwt and set it in cookie-session.
May help a bit
dev.to/dpkahuja/learn-and-build-we...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
What do you think about firebase auth being in
localStorage
by default?Although can be set in cookies as well. I tried, but I failed...
Hmm ideally you donβt wanna be putting any sensitive data in local storage as its openly accessible via JS. What problems did you have with configuring your session via cookies?
csrfToken
from the server? Another HTTPS request, or just js-cookie? There is no form or template rendering here...Encryt both fields to jwt and set it in cookie-session.
May help a bit
dev.to/dpkahuja/learn-and-build-we...