Amplify-js: Allow SignUp with custom attributes

Created on 1 Dec 2017  路  4Comments  路  Source: aws-amplify/amplify-js

Seems like it almost here:
https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/Auth/Auth.ts#L93-L106

Missing few lines to push rest attributes into attributes array and pass into this.userPool.signUp call.

My use case is to allow user to specify name attribute while signing up.

Auth.signUp(username, password, email, name)

Probably the signature should be changed: leave username and password params and provide all other attributes as third param:

Auth.signUp(username, password, { email, name })

Most helpful comment

Thanks for the feedback, attribute support is in our backlog and should be released after the next sprint, starting next week.

All 4 comments

Thumbs up for this too.

Cognito lib seems to have it all
https://github.com/aws/amazon-cognito-identity-js

Curious if AWS is planning to have amplify as the replacement for cognito js lib

Thanks

+1 for this request.

Probably this will be a breaking change.

@mlabieniec What do you think? Are you ok with adding a new method Auth.signupWithAttributes?

Thanks for the feedback, attribute support is in our backlog and should be released after the next sprint, starting next week.

We have signUp with custom attributes in PR right now and will be getting it merged soon so I'm closing this feel free to open if you feel you need to add anything further. We have more support for custom attributes in our backlog as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guanzo picture guanzo  路  3Comments

rayhaanq picture rayhaanq  路  3Comments

ldgarcia picture ldgarcia  路  3Comments

simon998yang picture simon998yang  路  3Comments

romainquellec picture romainquellec  路  3Comments