Merge branch 'integrations' into dev_environment
This commit is contained in:
commit
765ac72431
13 changed files with 1396 additions and 68 deletions
|
|
@ -44,6 +44,18 @@ function App() {
|
|||
let client_id = import.meta.env.VITE_AUTH0_CLIENT_ID;
|
||||
// if (!client_id) client_id = import.meta.env.VITE_AUTH0_CLIENT_ID;
|
||||
|
||||
//check the url for a code before auth0 causes a login re-direct
|
||||
// if (window.location.pathname !== "/callback") {
|
||||
// //set the code into local storage
|
||||
// let code = new URLSearchParams(window.location.search).get("code");
|
||||
// sessionStorage.setItem("code", code || "")
|
||||
// }
|
||||
|
||||
const skipCallbacks = [
|
||||
"/johndeere",
|
||||
"/cnhi"
|
||||
]
|
||||
|
||||
return (
|
||||
<AppThemeProvider>
|
||||
<Auth0Provider
|
||||
|
|
@ -53,6 +65,7 @@ function App() {
|
|||
audience: or(audience, ""),
|
||||
redirect_uri: window.location.origin + "/callback"
|
||||
}}
|
||||
skipRedirectCallback={skipCallbacks.includes(window.location.pathname)}
|
||||
useRefreshTokens={true}
|
||||
cacheLocation='localstorage'
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue