blue-hamburger-51631
07/25/2024, 4:14 PMdazzling-napkin-4938
07/25/2024, 11:36 PMblue-hamburger-51631
07/26/2024, 1:11 PMblue-hamburger-51631
07/26/2024, 1:14 PMDioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an
error on the network layer. This indicates an error which most likely cannot be solved by the library.
blue-hamburger-51631
07/26/2024, 2:03 PMfinal native = await _ory.createNativeRegistrationFlow();
var body = UpdateRegistrationFlowWithPasskeyMethod(
(b) => b
..method = 'passkey'
..traits = JsonObject({
'email': '<mailto:user@example.com|user@example.com>',
'name': 'John Doe',
'username': 'exampleUser'
}),
);
final response = await _ory.updateRegistrationFlow(
flow: native.data!.id,
updateRegistrationFlowBody: UpdateRegistrationFlowBody(
(b) => b.oneOf = OneOf.fromValue1(value: body)),
);
throws:
Error: Deserializing to 'SuccessfulNativeRegistration' failed due to: Tried to build class "SuccessfulNativeRegistration" but nested builder for
field "identity" threw: Tried to construct class "Identity" with null for non-nullable field "id".