Git Product home page Git Product logo

Comments (5)

haverchuck avatar haverchuck commented on May 16, 2024

@JamesMcIntosh We can't make the options field required at this time, but we ARE implementing a fix to serializeAsMap call as you suggested. The result will be a response from the platform code indicating that this request is malformed, which should hopefull be more helpful.

Thanks for posting this issue.

from amplify-flutter.

JamesMcIntosh avatar JamesMcIntosh commented on May 16, 2024

@haverchuck Sounds good as long as the platform code error explains that it's the option field missing

from amplify-flutter.

Ashish-Nanda avatar Ashish-Nanda commented on May 16, 2024

@JamesMcIntosh A fix for this bug was released today in version 0.0.1-dev.3, so will go ahead and close it out. Please give it a try and let us know if you are still facing issues, and we can look into it.

from amplify-flutter.

haverchuck avatar haverchuck commented on May 16, 2024

@JamesMcIntosh I don't think we are currently surfacing the specific fields that are missing, but we are looking at large, general improvement to our error handling, so please be patient. We are aware that this (and other) error visibility issues exist.

from amplify-flutter.

JuanDavid1996 avatar JuanDavid1996 commented on May 16, 2024

Hi, I update amplify_auth_cognito to ^ 0.2.1, then I made this solution

class QCSignUpOptions extends SignUpOptions {
  final Map<String, String> options;
  const MySignUpOptions({required this.options}) : super(userAttributes: options);
  @override
  Map<String, dynamic> serializeAsMap() {
    return options;
  }
}

And finally

 var options = Map<String, String>();
      options["foo"] = "foo";
      options["bar"] = "bar";

var signUpOptions = QCSignUpOptions(options: options);

      await Amplify.Auth.signUp(
          username: emailController.text,
          password: passwordController.text,
          options: signUpOptions);

from amplify-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.