Hello I'm trying to login/signup using thirdpartyp...
# support-questions-legacy
k
Hello I'm trying to login/signup using thirdpartypasswordless, i get the below error from supertokens core when trying to connect using facebook in our dev env, but its working fine in staging and production, any ideas?
Copy code
Error: SuperTokens core threw an error for a GET request to path: '/session/recipe/multitenancy/tenant' with status code: 400 and message: AppId or tenantId not found => Tenant with the following connectionURIDomain, appId and tenantId combination not found: (st-dev-a656a980-31d0-11ee-b7de-49557aa25a13.aws.supertokens.io, public, session)

at Querier.sendRequestHelper (/app/node_modules/supertokens-node/lib/build/querier.js:361:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Querier.sendGetRequest (/app/node_modules/supertokens-node/lib/build/querier.js:173:40)
at async Object.getTenant (/app/node_modules/supertokens-node/lib/build/recipe/multitenancy/recipeImplementation.js:34:28)
at async Object.getProvider (/app/node_modules/supertokens-node/lib/build/recipe/thirdparty/recipeImplementation.js:108:34)
at async Object.getProvider (/app/node_modules/supertokens-node/lib/build/recipe/thirdpartypasswordless/recipeImplementation/thirdPartyRecipeImplementation.js:24:20)
at async Object.authorisationUrlAPI [as default] (/app/node_modules/supertokens-node/lib/build/recipe/thirdparty/api/authorisationUrl.js:43:30)
at async Recipe.handleAPIRequest (/app/node_modules/supertokens-node/lib/build/recipe/thirdparty/recipe.js:75:24)
at async Recipe.handleAPIRequest (/app/node_modules/supertokens-node/lib/build/recipe/thirdpartypasswordless/recipe.js:64:24)
at async SuperTokens.middleware (/app/node_modules/supertokens-node/lib/build/supertokens.js:195:38)
cc @idanto
r
Hey @khaledfromvee_63013
You are somehow passing the tenant id as “session”
So you might want to see from where that’s coming into the picture.
k
yes i saw that, our dev and staging have different clusters but they share same exact code
where do think this issue is coming from, the backend or frontend?
staging is working fine
r
most likely the frontend cause thats what defines the tenant ID
it could also just be that you have not created the tenant with the required ID (in this case "session") in the core.
i
thanks @rp_st it was some endpoint mapping that has changed in our gateway that mapped the url to auth/session/authorisationurl intead of just /auth/authorisationurl it some how effected the request to the core
r
right! okay
3 Views