Skip to content

Commit

Permalink
Bug fix relating to log in log out
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancashman committed Oct 4, 2024
1 parent 4337888 commit b0444ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ import { createAuth0Client } from "@auth0/auth0-spa-js";



let toast = document.getElementById('loginToastMessage');
if (toast) {
toast.style.display = "none";
}
const updateUI = async (auth0, query) => {
const is_auth = await auth0.isAuthenticated();
//console.log("are we auth?", is_auth)
if (is_auth) {
document.body.style.display = null;

document.getElementById('loginToastMessage').style.display = "none";
let toast = document.getElementById('loginToastMessage');
if (toast) {
toast.style.display = "none";
}

// if we have a redirect request, grab it and push the user over to that page they wanted to see
var queryParams = new URLSearchParams(query);
Expand Down

0 comments on commit b0444ba

Please sign in to comment.