important-fall-74969
03/01/2022, 11:29 AMSubmitSelfServiceSettingsFlowWithLookupMethodBody
to submitSelfServiceSettingsFlow
and similarly for submitSelfServiceLoginFlow
. It looks like SubmitSelfServiceSettingsFlowWithLookupMethodBody
is missing from the types SubmitSelfServiceSettingsFlowBody
and SubmitSelfServiceLoginFlowBody
. Can I do a PR for this and fix it by updating internal/httpclient/api/openapi.yaml
?bored-fountain-61952
03/01/2022, 12:59 PMimportant-fall-74969
03/01/2022, 3:04 PMbored-fountain-61952
03/01/2022, 3:06 PMname
but it should be applicable to the other types as well...
export type CustomSubmitSelfServiceRegistrationFlowBody =
SubmitSelfServiceRegistrationFlowBody & {
traits: {
email: string
name: string
}
}
This will also give you type safety on the input fieldsimportant-fall-74969
03/01/2022, 3:13 PMsubmitSelfServiceSettingsFlow
still expect the SubmitSelfServiceRegistrationFlowBody
as an argument and not the custom type? We're calling kratos.submitSelfServiceSettingsFlow(this.flowId, undefined, {
csrf_token: _this_.csrfToken,
method: 'lookup',
lookup_secret_disable: true,
})
bored-fountain-61952
03/01/2022, 3:21 PMas expectedType
or even as unknown as expectedType
.
Where do you type the values that you get from the form? (I do it in the onSubmit = (values: myType)
important-fall-74969
03/01/2022, 5:17 PMsubmitSelfServiceSettingsFlow
is called when you click that button.