put the jd and cnh pages in, still need to test that the re-directs still function as expected with the new platform
This commit is contained in:
parent
eb7efada69
commit
424b75afb8
13 changed files with 1393 additions and 64 deletions
|
|
@ -44,6 +44,13 @@ 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 || "")
|
||||
}
|
||||
|
||||
return (
|
||||
<AppThemeProvider>
|
||||
<Auth0Provider
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue