Skip to content

Commit

Permalink
release: Amplify JS release (#11548)
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro authored Jun 27, 2023
2 parents cfd2062 + 7ebbbb1 commit bd89c0e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion packages/auth/src/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,15 @@ export class AuthClass {
);
}

private isPasswordResetRequiredError(
err: any
): err is { message: 'Password reset required for the user' } {
return (
this.isErrorWithMessage(err) &&
err.message === 'Password reset required for the user'
);
}

private isSignedInHostedUI() {
return (
this._oAuthHandler &&
Expand All @@ -1614,7 +1623,8 @@ export class AuthClass {
this.isUserDoesNotExistError(err) ||
this.isTokenRevokedError(err) ||
this.isRefreshTokenRevokedError(err) ||
this.isRefreshTokenExpiredError(err)
this.isRefreshTokenExpiredError(err) ||
this.isPasswordResetRequiredError(err)
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
"dependencies": {
"@aws-amplify/core": "5.5.1",
"@aws-sdk/client-location": "3.186.2",
"@aws-sdk/client-location": "3.186.3",
"@turf/boolean-clockwise": "6.5.0",
"camelcase-keys": "6.2.2",
"tslib": "^1.8.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
],
"dependencies": {
"@aws-amplify/core": "5.5.1",
"@aws-sdk/client-lex-runtime-service": "3.186.2",
"@aws-sdk/client-lex-runtime-v2": "3.186.2",
"@aws-sdk/client-lex-runtime-service": "3.186.3",
"@aws-sdk/client-lex-runtime-v2": "3.186.3",
"base-64": "1.0.0",
"fflate": "0.7.3",
"pako": "2.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
"dependencies": {
"@aws-amplify/core": "5.5.1",
"@aws-sdk/client-s3": "3.6.3",
"@aws-sdk/client-s3": "3.6.4",
"@aws-sdk/s3-request-presigner": "3.6.1",
"@aws-sdk/util-create-request": "3.6.1",
"@aws-sdk/util-format-url": "3.6.1",
Expand Down

0 comments on commit bd89c0e

Please sign in to comment.