@aws-amplify/auth 4.3.19 → 4.3.20-custom-pk.86

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
@@ -145,6 +145,11 @@ export declare class AuthClass {
145
145
  * @return {Promise}
146
146
  **/
147
147
  deleteUserAttributes(user: CognitoUser | any, attributeNames: string[]): Promise<unknown>;
148
+ /**
149
+ * Delete the current authenticated user
150
+ * @return {Promise}
151
+ **/
152
+ deleteUser(): Promise<string | void>;
148
153
  /**
149
154
  * Update an authenticated users' attributes
150
155
  * @param {CognitoUser} - The currently logged in user object
@@ -161,6 +166,15 @@ export declare class AuthClass {
161
166
  verified: {};
162
167
  unverified: {};
163
168
  }>;
169
+ private isErrorWithMessage;
170
+ private isTokenRevokedError;
171
+ private isRefreshTokenRevokedError;
172
+ private isUserDisabledError;
173
+ private isUserDoesNotExistError;
174
+ private isRefreshTokenExpiredError;
175
+ private isSignedInHostedUI;
176
+ private isSessionInvalid;
177
+ private cleanUpInvalidSession;
164
178
  /**
165
179
  * Get current authenticated user
166
180
  * @return - A promise resolves to current authenticated CognitoUser if success