Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor signup attributes as objects #79

Closed
wants to merge 11 commits into from

Conversation

nidsharm
Copy link

No description provided.

@codecov-io
Copy link

codecov-io commented Dec 18, 2017

Codecov Report

Merging #79 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
+ Coverage   92.03%   92.04%   +0.01%     
==========================================
  Files          51       51              
  Lines        2260     2263       +3     
  Branches      459      460       +1     
==========================================
+ Hits         2080     2083       +3     
  Misses        171      171              
  Partials        9        9
Impacted Files Coverage Δ
packages/aws-amplify/src/Auth/Auth.ts 97.16% <100%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1bc421...413382d. Read the comment docs.

Copy link
Contributor

@mlabieniec mlabieniec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • up unit test coverage
  • change arg name
  • change attribute type to object
  • attribute object k = attribute Name
  • fix conflicts

@@ -21,7 +21,7 @@ export default class AuthClass {
* @param {Object} attributeList - Other attributes
* @return - A promise resolves callback data if success
*/
signUp(username: string, password: string, email: string, phone_number: string): Promise<any>;
signUp(username: string, password: string, email?: string | Array<Object>, phone_number?: string): Promise<any>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change argument name 'email' to 'attributes' and continue backwards compatibility check below, also update function comment

public signUp(username: string, password: string, email: string, phone_number: string): Promise<any> {
public signUp(username: string,
password: string,
email?: string|Array<Object>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update attributes (email) argument to be an object {} allowing k/v pairs for where k is attribute name

@MatteCarra
Copy link

@mlabieniec mlabieniec closed this Jan 18, 2018
@athJ
Copy link

athJ commented May 2, 2018

Is this feature available in aws-amplify-react now ?

@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants