alert-painter-66256
05/26/2023, 12:30 AMorySdk
.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)
}