@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/CHANGELOG.md +149 -0
- package/dist/aws-amplify-auth.js +708 -332
- package/dist/aws-amplify-auth.js.map +1 -1
- package/dist/aws-amplify-auth.min.js +22 -78
- package/dist/aws-amplify-auth.min.js.map +1 -1
- package/lib/Auth.d.ts +14 -0
- package/lib/Auth.js +423 -142
- package/lib/Auth.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/types/Auth.d.ts +7 -0
- package/lib/types/Auth.js +8 -0
- package/lib/types/Auth.js.map +1 -1
- package/lib/urlListener.js +2 -2
- package/lib/urlListener.js.map +1 -1
- package/lib-esm/Auth.d.ts +14 -0
- package/lib-esm/Auth.js +424 -143
- package/lib-esm/Auth.js.map +1 -1
- package/lib-esm/index.d.ts +2 -2
- package/lib-esm/index.js +2 -2
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/types/Auth.d.ts +7 -0
- package/lib-esm/types/Auth.js +8 -0
- package/lib-esm/types/Auth.js.map +1 -1
- package/lib-esm/urlListener.js +3 -3
- package/lib-esm/urlListener.js.map +1 -1
- package/package.json +5 -5
- package/src/Auth.ts +283 -55
- package/src/index.ts +40 -35
- package/src/types/Auth.ts +8 -0
- package/src/urlListener.ts +3 -3
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
|