File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1+ /* /index.html 200
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments