Skip to content

Commit 3b4bdea

Browse files
committed
feat: remove tenantid from request where its ignored
1 parent cfd86e1 commit 3b4bdea

File tree

4 files changed

+27
-39
lines changed

4 files changed

+27
-39
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
## [0.7.1] - 2023-07-24
11+
12+
### Changes
13+
14+
- Removed unused tenant id param from `isEmailVerified` and `sendVerificationEmail` requests
15+
1016
## [0.7.0] - 2023-07-19
1117

1218
### Added

bundle/emailverification.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/emailverification/recipeImplementation.js

Lines changed: 18 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/emailverification/recipeImplementation.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515
import Querier from "../../querier";
1616
import { getQueryParams } from "../../utils";
17-
import Multitenancy from "../multitenancy/recipe";
1817
import { RecipeFunctionOptions, RecipeImplementationInput } from "../recipeModule/types";
1918
import { PreAndPostAPIHookAction, RecipeInterface } from "./types";
2019

@@ -82,7 +81,7 @@ export default function getRecipeImplementation(
8281
fetchResponse: Response;
8382
}> {
8483
const { jsonBody, fetchResponse } = await querier.get<{ status: "OK"; isVerified: boolean }>(
85-
await Multitenancy.getInstanceOrThrow().recipeImplementation.getTenantId({ userContext }),
84+
undefined,
8685
"/user/email/verify",
8786
{},
8887
undefined,
@@ -117,7 +116,7 @@ export default function getRecipeImplementation(
117116
fetchResponse: Response;
118117
}> {
119118
const { jsonBody, fetchResponse } = await querier.post<{ status: "OK" | "EMAIL_ALREADY_VERIFIED_ERROR" }>(
120-
await Multitenancy.getInstanceOrThrow().recipeImplementation.getTenantId({ userContext }),
119+
undefined,
121120
"/user/email/verify/token",
122121
{ body: JSON.stringify({}) },
123122
Querier.preparePreAPIHook({

0 commit comments

Comments
 (0)