jonsaw / amazon-cognito-identity-dart

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
204 stars 93 forks source link

how can i add custom attributes when signup #68

Open zhangli-jerry opened 4 years ago

zhangli-jerry commented 4 years ago

how can i add custom attributes when signup? can i use ClientMataData ?

Thanks.

shierro commented 4 years ago

seems so https://github.com/jonsaw/amazon-cognito-identity-dart/blob/676687346a963b37c96d7d52333d06153d9f69bb/lib/src/cognito_user.dart#L408

1st time we've tried, we got error code 400 SerializationException

furaiev commented 4 years ago

Guys, fixed in forked branch https://pub.dev/packages/amazon_cognito_identity_dart_2 Welcome to contribute

shierro commented 4 years ago

@furaiev thanks for fixing this one quickly. i think it's also good to submit a PR to this repo so we can switch back to it once it is merged

furaiev commented 4 years ago

I don't believe that owner will start support this package again. There are already 14 unresolved PRs.

Aathi commented 4 years ago
final userAttributes = [
      new AttributeArg(name: 'name', value: name),
      new AttributeArg(name: 'custom:attribute_1', value: attribute_1),
      new AttributeArg(name: 'custom:attribute_2', value: attribute_2),
      new AttributeArg(name: 'custom:attribute_3', value: attribute_3),
]