summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-11-05 08:48:01 +0200
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-11-05 08:48:01 +0200
commit0f0f194cef76a5c1b815a793314e0aca745dd311 (patch)
tree25f0ed0b5cb2255ef2b694bde758018813079915
parenta78a721df5f91ddb3bb9a755aaf6a44e3996d417 (diff)
Store access_token in localstorage
-rw-r--r--main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.js b/main.js
index bb4c7ab..36267e1 100644
--- a/main.js
+++ b/main.js
@@ -46,7 +46,8 @@ const logout = () => {
const configureClient = async() => {
auth0 = await createAuth0Client({
domain: authConfig.domain,
- client_id: authConfig.clientId
+ client_id: authConfig.clientId,
+ cacheLocation: "localstorage",
});
window.auth0 = auth0;
};