diff --git a/pages/login.tsx b/pages/login.tsx index c93ac7c2..d38ee2c5 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -25,6 +25,7 @@ const Login: NextPage = () => { // AAL = Authorization Assurance Level. This implies that we want to upgrade the AAL, meaning that we want // to perform two-factor authentication/verification. aal, + via, } = router.query // This might be confusing, but we want to show the user an option @@ -54,12 +55,13 @@ const Login: NextPage = () => { refresh: Boolean(refresh), aal: aal ? String(aal) : undefined, returnTo: returnTo ? String(returnTo) : undefined, - }) + via: via ? String(via) : undefined, + } as any) .then(({ data }) => { setFlow(data) }) .catch(handleFlowError(router, "login", setFlow)) - }, [flowId, router, router.isReady, aal, refresh, returnTo, flow]) + }, [flowId, router, router.isReady, aal, refresh, returnTo, flow, via]) const onSubmit = (values: UpdateLoginFlowBody) => router