Feature/33 api fails when no pilots or logbook entries #35

Merged
noahspannbauer merged 85 commits from feature/33-api-fails-when-no-pilots-or-logbook-entries into main 2025-02-02 18:24:48 -05:00
Showing only changes of commit 8c49360653 - Show all commits

View File

@@ -7,7 +7,7 @@ interface AuthProviderProps {
children: ReactNode
}
export const AuthProvider = ({ children }: AuthProviderProps ) => {
export const AuthProvider = async ({ children }: AuthProviderProps ) => {
const msalInstance = new PublicClientApplication(msalConfig);
// Default to using the first account if no account is active on page load
@@ -26,7 +26,8 @@ export const AuthProvider = ({ children }: AuthProviderProps ) => {
}
});
msalInstance.handleRedirectPromise();
await msalInstance.initialize();
// msalInstance.handleRedirectPromise();
return <MsalProvider instance={msalInstance}>
{children}