From 35ab96b8038383b3e0c2c9a87835a1ad2d851e83 Mon Sep 17 00:00:00 2001 From: ScriptSmith Date: Wed, 4 Oct 2023 16:17:45 +1000 Subject: [PATCH] Specify customProvider to skip hosted ui --- frontend/context/auth-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/context/auth-context.tsx b/frontend/context/auth-context.tsx index 87ffdc8..e4c0992 100644 --- a/frontend/context/auth-context.tsx +++ b/frontend/context/auth-context.tsx @@ -139,7 +139,7 @@ function useLogin() { setIsLoggingIn(true); localStorage.removeItem(TEMP_PWD_LOCALSTORAGE_KEY); try { - const user = await Auth.federatedSignIn(); + const user = await Auth.federatedSignIn({ customProvider: "QUT" }); initializeUser().then(() => console.log("User initialised post login")); router.push("/").then(() => console.log("Routing to home post login")); return user;