@aws-amplify/auth 5.5.6-v5-user-agent-for-ui.03d3911.15 → 5.6.1-github-actions.c2933e1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Auth.d.ts CHANGED
@@ -64,7 +64,7 @@ export declare class AuthClass {
64
64
  signIn(usernameOrSignInOpts: string | SignInOpts, pw?: string, clientMetadata?: ClientMetaData): Promise<CognitoUser | any>;
65
65
  /**
66
66
  * Return an object with the authentication callbacks
67
- * @param {InternalCognitoUser} user - the cognito user object
67
+ * @param {CognitoUser} user - the cognito user object
68
68
  * @param {} resolve - function called when resolving the current step
69
69
  * @param {} reject - function called when rejecting the current step
70
70
  * @return - an object with the callback methods for user authentication
@@ -74,14 +74,14 @@ export declare class AuthClass {
74
74
  * Sign in with a password
75
75
  * @private
76
76
  * @param {AuthenticationDetails} authDetails - the user sign in data
77
- * @return - A promise resolves the InternalCognitoUser object if success or mfa required
77
+ * @return - A promise resolves the CognitoUser object if success or mfa required
78
78
  */
79
79
  private signInWithPassword;
80
80
  /**
81
81
  * Sign in without a password
82
82
  * @private
83
83
  * @param {AuthenticationDetails} authDetails - the user sign in data
84
- * @return - A promise resolves the InternalCognitoUser object if success or mfa required
84
+ * @return - A promise resolves the CognitoUser object if success or mfa required
85
85
  */
86
86
  private signInWithoutPassword;
87
87
  /**
@@ -137,20 +137,20 @@ export declare class AuthClass {
137
137
  verifyTotpToken(user: CognitoUser | any, challengeAnswer: string): Promise<CognitoUserSession>;
138
138
  /**
139
139
  * Send MFA code to confirm sign in
140
- * @param {CognitoUser} user - The CognitoUser object
141
- * @param {string} code - The confirmation code
140
+ * @param {Object} user - The CognitoUser object
141
+ * @param {String} code - The confirmation code
142
142
  */
143
143
  confirmSignIn(user: CognitoUser | any, code: string, mfaType?: 'SMS_MFA' | 'SOFTWARE_TOKEN_MFA' | null, clientMetadata?: ClientMetaData): Promise<CognitoUser | any>;
144
144
  completeNewPassword(user: CognitoUser | any, password: string, requiredAttributes?: any, clientMetadata?: ClientMetaData): Promise<CognitoUser | any>;
145
145
  /**
146
146
  * Send the answer to a custom challenge
147
- * @param {CognitoUser} user - The InternalCognitoUser object
147
+ * @param {CognitoUser} user - The CognitoUser object
148
148
  * @param {String} challengeResponses - The confirmation code
149
149
  */
150
150
  sendCustomChallengeAnswer(user: CognitoUser | any, challengeResponses: string, clientMetadata?: ClientMetaData): Promise<CognitoUser | any>;
151
151
  /**
152
152
  * Delete an authenticated users' attributes
153
- * @param {CognitoUser} user - The currently logged in user object
153
+ * @param {CognitoUser} - The currently logged in user object
154
154
  * @return {Promise}
155
155
  **/
156
156
  deleteUserAttributes(user: CognitoUser | any, attributeNames: string[]): Promise<unknown>;
@@ -161,14 +161,14 @@ export declare class AuthClass {
161
161
  deleteUser(): Promise<string | void>;
162
162
  /**
163
163
  * Update an authenticated users' attributes
164
- * @param {CognitoUser} user - The currently logged in user object
164
+ * @param {CognitoUser} - The currently logged in user object
165
165
  * @return {Promise}
166
166
  **/
167
167
  updateUserAttributes(user: CognitoUser | any, attributes: object, clientMetadata?: ClientMetaData): Promise<string>;
168
168
  private createUpdateAttributesResultList;
169
169
  /**
170
170
  * Return user attributes
171
- * @param {Object} user - The InternalCognitoUser object
171
+ * @param {Object} user - The CognitoUser object
172
172
  * @return - A promise resolves to user attributes if success
173
173
  */
174
174
  userAttributes(user: CognitoUser | any): Promise<CognitoUserAttribute[]>;