Skip to content

Commit

Permalink
fix: make isEmailChangedAllowed properly check across tenants
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Jul 23, 2024
1 parent bc37fed commit f0a8818
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [19.0.2] - 2024-07-23

- Fixes an issue where `isEmailChangeAllowed` was not checking across all tenants

## [19.0.1] - 2024-07-18

- Fixes issue in fetching `thirdPartyConfig` for dashboard when OIDC discovery endpoint is added in core.
Expand Down
2 changes: 1 addition & 1 deletion lib/build/recipe/accountlinking/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class Recipe extends recipeModule_1.default {
}
for (const tenantId of inputUser.tenantIds) {
let existingUsersWithNewEmail = await this.recipeInterfaceImpl.listUsersByAccountInfo({
tenantId: inputUser.tenantIds[0],
tenantId,
accountInfo: {
email: input.newEmail,
},
Expand Down
2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ts/recipe/accountlinking/recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export default class Recipe extends RecipeModule {

for (const tenantId of inputUser.tenantIds) {
let existingUsersWithNewEmail = await this.recipeInterfaceImpl.listUsersByAccountInfo({
tenantId: inputUser.tenantIds[0],
tenantId,
accountInfo: {
email: input.newEmail,
},
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
export const version = "19.0.1";
export const version = "19.0.2";

export const cdiSupported = ["5.1"];

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supertokens-node",
"version": "19.0.1",
"version": "19.0.2",
"description": "NodeJS driver for SuperTokens core",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f0a8818

Please sign in to comment.