Skip to content

Commit

Permalink
Merge pull request #874 from supertokens/feat/quickstart-change
Browse files Browse the repository at this point in the history
Fix type checking errors
  • Loading branch information
bcbogdan authored Nov 21, 2024
2 parents 9ed26de + 73803ad commit 60ede6c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions v2/thirdpartyemailpassword/quickstart/frontend-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -734,7 +735,8 @@ SuperTokens.init({
},
recipeList: [
Session.init(),
^{recipeNameCapitalLetters}.init(),
ThirdParty.init(),
EmailPassword.init(),
],
});
```
Expand All @@ -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}",
Expand All @@ -759,7 +763,8 @@ supertokens.init({
},
recipeList: [
supertokensSession.init(),
supertokens^{recipeNameCapitalLetters}.init(),
supertokensThirdParty.init(),
supertokensEmailPassword.init(),
],
});
```
Expand Down
13 changes: 9 additions & 4 deletions v2/thirdpartypasswordless/quickstart/frontend-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -775,7 +776,8 @@ SuperTokens.init({
},
recipeList: [
Session.init(),
^{recipeNameCapitalLetters}.init(),
ThirdParty.init(),
Passwordless.init(),
],
});
```
Expand All @@ -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}",
Expand All @@ -800,7 +804,8 @@ supertokens.init({
},
recipeList: [
supertokensSession.init(),
supertokens^{recipeNameCapitalLetters}.init(),
supertokensThirdParty.init(),
supertokensPasswordless.init(),
],
});
```
Expand Down

0 comments on commit 60ede6c

Please sign in to comment.