# \#localstorage

**URL:** https://community.auth0.com/tag/localstorage/950.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [How to persist login with auth0-react after page refresh without localStorage?](https://community.auth0.com/t/how-to-persist-login-with-auth0-react-after-page-refresh-without-localstorage/65777)

<div class="topic-metadata">

**Author:** [@ronifintech](https://community.auth0.com/u/ronifintech)\
**Replies:** 4\
**Last updated:** [July 12, 2021, 2:56pm UTC](https://community.auth0.com/t/how-to-persist-login-with-auth0-react-after-page-refresh-without-localstorage/65777 "2021-07-12T14:56:34Z")

</div>

Which SDK this is regarding: @auth0/auth0-react SDK Version: 1.4.0 Platform Version: Node.js v14.17.1 Code Snippets/Error Messages/Supporting Details/Screenshots: Using the standard Auth0Provider but login…

---

## [Session not persisting using cacheLocation: localstorage](https://community.auth0.com/t/session-not-persisting-using-cachelocation-localstorage/55364)

<div class="topic-metadata">

**Author:** [@garym](https://community.auth0.com/u/garym)\
**Replies:** 3\
**Last updated:** [December 31, 2020, 9:07pm UTC](https://community.auth0.com/t/session-not-persisting-using-cachelocation-localstorage/55364 "2020-12-31T21:07:34Z")

</div>

I have authentication with claims working except sessions are not persisting when refreshing the browser. I’m using auth0-spa-js with vanlilla JS (well, Svelte actually), I have cacheLocation: "localstorage" when calli…

---

## [Reading Token from LocalStorage for E2E Use Case](https://community.auth0.com/t/reading-token-from-localstorage-for-e2e-use-case/53421)

<div class="topic-metadata">

**Author:** [@benny.powers.aqovia](https://community.auth0.com/u/benny.powers.aqovia)\
**Replies:** 0\
**Last updated:** [November 18, 2020, 8:07am UTC](https://community.auth0.com/t/reading-token-from-localstorage-for-e2e-use-case/53421 "2020-11-18T08:07:06Z")

</div>

Hey there, Say you’ve got an SPA that uses @auth0/auth0-spa-js. The token is ordinarily stored in memory as a JavaScript variable, and updated with getTokenSilently as needed. let cachedToken; export function authoriz…
