delightful-beach-50237
01/23/2023, 6:37 PMshy-fish-88756
01/23/2023, 8:55 PM{
"identifier": "<mailto:my@email.com|my@email.com>",
"password": "dsafdsfdsvcxvcxbfddf.21",
"method": "password"
}
On kotlin, I do this, in case it's of any use to you
val withPasswordMethod = UpdateLoginFlowWithPasswordMethod().apply {
val ui = updateLoginFlowRequest.ui
method = ui.nodesList.single { it.type == AuthFormNode.NodeType.Submit }.value
password = ui.nodeWithName(SERIALIZED_NAME_PASSWORD).value
identifier = ui.nodeWithName(SERIALIZED_NAME_IDENTIFIER).value
}
val response: SuccessfulNativeLogin = frontendApi.updateLoginFlow(
updateLoginFlowRequest.id,
UpdateLoginFlowBody(withPasswordMethod),
null, //token
null //cookie
)
delightful-beach-50237
01/24/2023, 8:56 AM/login?flow=${loginFlow.value.id}
)`
.then(() => {
ory.updateLoginFlow({
flow: String(loginFlow.value.id),
updateLoginFlowBody: {
email: '<mailto:admin@dev.pointprism.com|admin@dev.pointprism.com>',
password: 'qwerty.qwerty',
// method: 'POST',
},
})
shy-fish-88756
01/24/2023, 9:20 AMemail
where I use identifier
. Maybe the error is there
and you don't specify the method
delightful-beach-50237
01/24/2023, 10:29 AMshy-fish-88756
01/24/2023, 10:52 AMdelightful-beach-50237
01/24/2023, 10:53 AMdelightful-beach-50237
01/24/2023, 3:51 PMidentifier: email.value,
password: password.value,
method: 'POST',
to
identifier: email.value,
password: password.value,
method: 'password',
csrf_token: loginFlow.value?.ui?.nodes[0]?.attributes?.value
I needed to add csrf_token
field and change method value )))
Thank you so much, your answer helped me so much ππshy-fish-88756
01/25/2023, 7:10 AM