Skip to content

Commit

Permalink
Merge pull request #945 from cityofaustin/4350_login_bug
Browse files Browse the repository at this point in the history
VZE | Fix bug that prevents new users from logging into VZE successfully
  • Loading branch information
mddilley authored Nov 4, 2020
2 parents f8a546e + 04fbf6b commit 0b65f79
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 27 deletions.
56 changes: 31 additions & 25 deletions atd-vze/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion atd-vze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@apollo/react-hooks": "^3.0.0",
"@auth0/auth0-spa-js": "^1.6.4",
"@auth0/auth0-spa-js": "^1.13.1",
"@coreui/coreui": "^2.1.12",
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1",
"@coreui/icons": "0.3.0",
Expand Down
6 changes: 5 additions & 1 deletion atd-vze/src/auth/authContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ export const Auth0Provider = ({
// Instantiate Auth0, handle auth callback, and set loading and user params
useEffect(() => {
const initAuth0 = async () => {
const auth0FromHook = await createAuth0Client(initOptions);
const auth0FromHook = await createAuth0Client({
...initOptions,
useRefreshTokens: true,
cacheLocation: "localstorage",
});
setAuth0(auth0FromHook);

// If callback URL, handle it
Expand Down

0 comments on commit 0b65f79

Please sign in to comment.