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:
csawatzky 2025-04-23 13:25:45 -06:00
parent eb7efada69
commit 424b75afb8
13 changed files with 1393 additions and 64 deletions

View file

@ -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