From 73803ad786593bb51e3cb0d0e5143aa91d8fcd7a Mon Sep 17 00:00:00 2001 From: Bogdan Carpusor Date: Thu, 21 Nov 2024 09:18:59 +0200 Subject: [PATCH] Fix type checking errors --- .../quickstart/frontend-setup.mdx | 13 +++++++++---- .../quickstart/frontend-setup.mdx | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/v2/thirdpartyemailpassword/quickstart/frontend-setup.mdx b/v2/thirdpartyemailpassword/quickstart/frontend-setup.mdx index 734b91339..cfd700eab 100644 --- a/v2/thirdpartyemailpassword/quickstart/frontend-setup.mdx +++ b/v2/thirdpartyemailpassword/quickstart/frontend-setup.mdx @@ -724,7 +724,8 @@ The invocation includes the [main configuration details](../appinfo), as well as ```tsx import SuperTokens from 'supertokens-web-js'; import Session from 'supertokens-web-js/recipe/session'; -import ^{recipeNameCapitalLetters} from 'supertokens-web-js/recipe/^{codeImportRecipeName}' +import ThirdParty from "supertokens-web-js/recipe/thirdparty"; +import EmailPassword from "supertokens-web-js/recipe/emailpassword"; SuperTokens.init({ appInfo: { @@ -734,7 +735,8 @@ SuperTokens.init({ }, recipeList: [ Session.init(), - ^{recipeNameCapitalLetters}.init(), + ThirdParty.init(), + EmailPassword.init(), ], }); ``` @@ -750,7 +752,9 @@ SuperTokens.init({ ```tsx import supertokens from "supertokens-web-js-script"; import supertokensSession from "supertokens-web-js-script/recipe/session"; -import supertokens^{recipeNameCapitalLetters} from 'supertokens-web-js-script/recipe/^{codeImportRecipeName}' +import supertokensThirdParty from "supertokens-web-js-script/recipe/thirdparty"; +import supertokensEmailPassword from "supertokens-web-js-script/recipe/emailpassword"; + supertokens.init({ appInfo: { apiDomain: "^{form_apiDomain}", @@ -759,7 +763,8 @@ supertokens.init({ }, recipeList: [ supertokensSession.init(), - supertokens^{recipeNameCapitalLetters}.init(), + supertokensThirdParty.init(), + supertokensEmailPassword.init(), ], }); ``` diff --git a/v2/thirdpartypasswordless/quickstart/frontend-setup.mdx b/v2/thirdpartypasswordless/quickstart/frontend-setup.mdx index 63bce28f9..b12a87453 100644 --- a/v2/thirdpartypasswordless/quickstart/frontend-setup.mdx +++ b/v2/thirdpartypasswordless/quickstart/frontend-setup.mdx @@ -765,7 +765,8 @@ The invocation includes the [main configuration details](../appinfo), as well as ```tsx import SuperTokens from 'supertokens-web-js'; import Session from 'supertokens-web-js/recipe/session'; -import ^{recipeNameCapitalLetters} from 'supertokens-web-js/recipe/^{codeImportRecipeName}' +import ThirdParty from "supertokens-web-js/recipe/thirdparty"; +import Passwordless from "supertokens-web-js/recipe/passwordless"; SuperTokens.init({ appInfo: { @@ -775,7 +776,8 @@ SuperTokens.init({ }, recipeList: [ Session.init(), - ^{recipeNameCapitalLetters}.init(), + ThirdParty.init(), + Passwordless.init(), ], }); ``` @@ -791,7 +793,9 @@ SuperTokens.init({ ```tsx import supertokens from "supertokens-web-js-script"; import supertokensSession from "supertokens-web-js-script/recipe/session"; -import supertokens^{recipeNameCapitalLetters} from 'supertokens-web-js-script/recipe/^{codeImportRecipeName}' +import supertokensThirdParty from "supertokens-web-js-script/recipe/thirdparty"; +import supertokensPasswordless from "supertokens-web-js-script/recipe/passwordless"; + supertokens.init({ appInfo: { apiDomain: "^{form_apiDomain}", @@ -800,7 +804,8 @@ supertokens.init({ }, recipeList: [ supertokensSession.init(), - supertokens^{recipeNameCapitalLetters}.init(), + supertokensThirdParty.init(), + supertokensPasswordless.init(), ], }); ```