Skip to content

Commit d6f3801

Browse files
committed
feat: deploy to Netlify
1 parent d0eefc6 commit d6f3801

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

src/auth0-provider-with-navigate.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ export const Auth0ProviderWithNavigate = ({ children }) => {
77

88
const domain = process.env.REACT_APP_AUTH0_DOMAIN;
99
const clientId = process.env.REACT_APP_AUTH0_CLIENT_ID;
10-
const redirectUri = process.env.REACT_APP_AUTH0_CALLBACK_URL;
1110

1211
const onRedirectCallback = (appState) => {
1312
navigate(appState?.returnTo || window.location.pathname);
1413
};
1514

16-
if (!(domain && clientId && redirectUri)) {
15+
if (!(domain && clientId)) {
1716
return null;
1817
}
1918

@@ -22,7 +21,7 @@ export const Auth0ProviderWithNavigate = ({ children }) => {
2221
domain={domain}
2322
clientId={clientId}
2423
authorizationParams={{
25-
redirect_uri: redirectUri,
24+
redirect_uri: window.location.origin,
2625
}}
2726
onRedirectCallback={onRedirectCallback}
2827
>

0 commit comments

Comments
 (0)