Skip to content

Commit

Permalink
custom attributes for signup
Browse files Browse the repository at this point in the history
  • Loading branch information
powerful23 committed Jan 16, 2018
1 parent ad19972 commit 2b5395e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/aws-amplify/src/Auth/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ export default class AuthClass {

/**
* Sign up with username, password and other attrbutes like phone, email
* @param {String} username - The username to be signed up
* @param {String} password - The password of the user
* @param {Object} attributeList - Other attributes
* @param {String | object} attrs - The user attirbutes used for signin
* @param {String[]} restOfAttrs - for the backward compatability
* @return - A promise resolves callback data if success
*/
//public signUp(username: string, password: string, attrs?: string | object, phone_number?: string): Promise<any> {
public signUp(attrs: string | object, ...restOfAttrs: string[]): Promise<any> {
if (!this.userPool) { return Promise.reject('No userPool'); }

Expand Down

0 comments on commit 2b5395e

Please sign in to comment.