Skip to content

Commit

Permalink
fix: auth react server fix (#653)
Browse files Browse the repository at this point in the history
* fix: server for FE testing

* fix: server for FE testing

---------

Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com>
  • Loading branch information
sattvikc and rishabhpoddar authored Jul 21, 2023
1 parent 03be878 commit d59c87b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/auth-react-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const { default: ThirdPartyRaw } = require("../../lib/build/recipe/thirdparty/re
const { default: ThirdPartyEmailPasswordRaw } = require("../../lib/build/recipe/thirdpartyemailpassword/recipe");
const { default: DashboardRaw } = require("../../lib/build/recipe/dashboard/recipe");
const { default: MultitenancyRaw } = require("../../lib/build/recipe/multitenancy/recipe");
const Multitenancy = require("../../lib/build/recipe/multitenancy");

const { default: ThirdPartyPasswordlessRaw } = require("../../lib/build/recipe/thirdpartypasswordless/recipe");
const { default: SessionRaw } = require("../../lib/build/recipe/session/recipe");
Expand Down Expand Up @@ -301,6 +302,7 @@ app.get("/test/featureFlags", (req, res) => {
available.push("thirdpartypasswordless");
available.push("generalerror");
available.push("userroles");
available.push("multitenancy");

res.send({
available,
Expand Down Expand Up @@ -632,6 +634,13 @@ function initST({ passwordlessConfig } = {}) {
},
},
}),

Multitenancy.init({
getAllowedDomainsForTenantId: (tenantId) => [
`${tenantId}.example.com`,
websiteDomain.replace(/https?:\/\/([^:\/]*).*/, "$1"),
],
}),
];

passwordlessConfig = {
Expand Down

0 comments on commit d59c87b

Please sign in to comment.