Skip to content

Commit

Permalink
Migrate to v2 provider syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
oo-bldrs committed Feb 2, 2023
1 parent e318438 commit deb03d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/Auth0ProviderWithHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export const Auth0ProviderWithHistory = ({children}) => {
<Auth0Provider
domain={process.env.AUTH0_DOMAIN}
clientId={process.env.OAUTH2_CLIENT_ID}
redirectUri={process.env.OAUTH2_REDIRECT_URI || window.location.origin}
authorizationParams={{
redirect_uri: process.env.OAUTH2_REDIRECT_URI || window.location.origin,
}}
cacheLocation={'localstorage'}
onRedirectCallback={onRedirect}
useRefreshTokens={true}
Expand Down

0 comments on commit deb03d8

Please sign in to comment.