Skip to content

Commit

Permalink
fix: failed silent auth in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tructn committed Oct 20, 2024
1 parent 45d9033 commit a5e6813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/common/httpservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import axios from "axios";
const auth0 = new Auth0Client({
domain: import.meta.env.VITE_AUTH0_DOMAIN,
clientId: import.meta.env.VITE_AUTH0_CLIENTID,
cacheLocation: "memory",
authorizationParams: {
redirect_uri: window.location.origin,
audience: import.meta.env.VITE_AUTH0_AUDIENCE
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<MantineProvider theme={theme}>
<ModalsProvider>
<Auth0Provider
cacheLocation="localstorage"
domain={import.meta.env.VITE_AUTH0_DOMAIN}
clientId={import.meta.env.VITE_AUTH0_CLIENTID}
authorizationParams={{
audience: import.meta.env.VITE_AUTH0_AUDIENCE,
redirect_uri: window.location.origin,
}}
cacheLocation="memory"
>
<App />
<Notifications />
Expand Down

0 comments on commit a5e6813

Please sign in to comment.