stuck in a redirect loop, need to work that out

This commit is contained in:
Ashley Stanton-Nurse
2024-06-07 11:03:20 -07:00
parent 06d4829422
commit 4866d3c902
7 changed files with 102 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
import React, { useState } from "react";
import { getMsalInstance } from "Utils/AuthorizationUtils";
import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom";
import Arrow from "../images/Arrow.svg";
import CosmosDB_20170829 from "../images/CosmosDB_20170829.svg";
@@ -9,10 +10,17 @@ import "../less/index.less";
const Index = (): JSX.Element => {
const [navigationSelection, setNavigationSelection] = useState("quickstart");
const quickstart_click = () => {
setNavigationSelection("quickstart");
};
useEffect(() => {
(async () => {
const msalInstance = await getMsalInstance();
console.log("handleRedirectPromise");
await msalInstance.handleRedirectPromise();
})();
}, []);
const explorer_click = () => {
setNavigationSelection("explorer");