Got it to work now but the solution was a bit hack...
# talk-kratos
a
Got it to work now but the solution was a bit hack(ish) by doing this on submit:
Copy code
orySdk
      .updateLoginFlow({ flow: flow.id, updateLoginFlowBody: body })
      .then(({ data }) => {
        // if the user requested aal2, we redirect to the aal2 login page
        if (!hasAal2 && !data.session.identity) {
          window.location.href = '/auth/login?aal2=true'
          return
        }

        // we successfully submitted the login flow, so lets redirect to the dashboard
        onSuccessfullLogin(data)
      })
      .catch(sdkErrorHandler)
  }