swift-fountain-14586
12/04/2024, 9:38 PMcourier:
templates:
registration_code:
valid:
sms:
body:
plaintext: "<base64://WW91ciBjb2RlIGlzOiB7eyAuUmVnaXN0cmF0aW9uQ29kZSB9fQo>="
email:
body:
plaintext: "<base64://WW91ciBjb2RlIGlzOiB7eyAuUmVnaXN0cmF0aW9uQ29kZSB9fQo>="
But then I get the error that sms is not allowed in registration_code
Kratos documentation also mentions that sms templates are only allowed for verification_code and login_code. I'm running v1.3.1.
Does this mean registration flow using phone and OTP is not supported yet?magnificent-energy-493
swift-fountain-14586
12/12/2024, 4:14 AMmagnificent-energy-493
most-train-86113
12/13/2024, 4:07 AMswift-fountain-14586
12/14/2024, 5:14 PMswift-fountain-14586
12/14/2024, 5:26 PMif resp.StatusCode == http.StatusBadRequest {
trueError := false
stateRaw, ok := responseBody["state"]
if !ok {
trueError = true
}
state, ok := stateRaw.(string)
if !ok {
trueError = true
}
if state != "sent_email" {
trueError = true
}
if trueError {
return fmt.Errorf("unexpected status code: %d", resp.StatusCode)
}
}