diff --git a/v2/emailpassword/common-customizations/email-verification/about.mdx b/v2/emailpassword/common-customizations/email-verification/about.mdx index 9737596ff..12e146de8 100644 --- a/v2/emailpassword/common-customizations/email-verification/about.mdx +++ b/v2/emailpassword/common-customizations/email-verification/about.mdx @@ -22,12 +22,14 @@ import VueUIImplementation from "/src/components/reusableSnippets/vueUIImplement # Enable email verification -## Enable email verification - :::important Email verification is turned off by default. It is strongly encouraged to enable it to ensure the authenticity of your users. ::: + + + + There are two modes of email verification: - `REQUIRED`: Requires that the user's email is verified before they can access your application's frontend or backend routes (that are protected with a session). @@ -113,10 +115,6 @@ init( ### Frontend setup - - - - @@ -227,76 +225,7 @@ Additionally, note that SuperTokens does not send verification emails post user - - - - - - -```tsx -import SuperTokens from "supertokens-web-js"; -import EmailVerification from "supertokens-web-js/recipe/emailverification"; -import Session from "supertokens-web-js/recipe/session"; - -SuperTokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - EmailVerification.init(), - Session.init(), - ], -}); -``` - - - - -Add the following ` -``` - -Then call the `supertokensEmailVerification.init` function as shown below - -```tsx -import supertokens from "supertokens-web-js-script"; -import supertokensEmailVerification from "supertokens-web-js-script/recipe/emailverification"; -import supertokensSession from "supertokens-web-js-script/recipe/session"; -supertokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - supertokensEmailVerification.init(), - supertokensSession.init(), - ], -}); -``` - - - - - - - - -:::success -No specific action required here. -::: - - - - -:::important -SuperTokens will not send the verification email post user signup. You will need to call the email verification API to send the email. Our guide on [protecting API and website routes](./protecting-routes) will go over the changes that need to be made to send the verification email. -::: +See our guide [in the custom UI section](../../custom-ui/enable-email-verification). diff --git a/v2/passwordless/common-customizations/email-verification/about.mdx b/v2/passwordless/common-customizations/email-verification/about.mdx index 9737596ff..12e146de8 100644 --- a/v2/passwordless/common-customizations/email-verification/about.mdx +++ b/v2/passwordless/common-customizations/email-verification/about.mdx @@ -22,12 +22,14 @@ import VueUIImplementation from "/src/components/reusableSnippets/vueUIImplement # Enable email verification -## Enable email verification - :::important Email verification is turned off by default. It is strongly encouraged to enable it to ensure the authenticity of your users. ::: + + + + There are two modes of email verification: - `REQUIRED`: Requires that the user's email is verified before they can access your application's frontend or backend routes (that are protected with a session). @@ -113,10 +115,6 @@ init( ### Frontend setup - - - - @@ -227,76 +225,7 @@ Additionally, note that SuperTokens does not send verification emails post user - - - - - - -```tsx -import SuperTokens from "supertokens-web-js"; -import EmailVerification from "supertokens-web-js/recipe/emailverification"; -import Session from "supertokens-web-js/recipe/session"; - -SuperTokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - EmailVerification.init(), - Session.init(), - ], -}); -``` - - - - -Add the following ` -``` - -Then call the `supertokensEmailVerification.init` function as shown below - -```tsx -import supertokens from "supertokens-web-js-script"; -import supertokensEmailVerification from "supertokens-web-js-script/recipe/emailverification"; -import supertokensSession from "supertokens-web-js-script/recipe/session"; -supertokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - supertokensEmailVerification.init(), - supertokensSession.init(), - ], -}); -``` - - - - - - - - -:::success -No specific action required here. -::: - - - - -:::important -SuperTokens will not send the verification email post user signup. You will need to call the email verification API to send the email. Our guide on [protecting API and website routes](./protecting-routes) will go over the changes that need to be made to send the verification email. -::: +See our guide [in the custom UI section](../../custom-ui/enable-email-verification). diff --git a/v2/thirdparty/common-customizations/email-verification/about.mdx b/v2/thirdparty/common-customizations/email-verification/about.mdx index 9737596ff..12e146de8 100644 --- a/v2/thirdparty/common-customizations/email-verification/about.mdx +++ b/v2/thirdparty/common-customizations/email-verification/about.mdx @@ -22,12 +22,14 @@ import VueUIImplementation from "/src/components/reusableSnippets/vueUIImplement # Enable email verification -## Enable email verification - :::important Email verification is turned off by default. It is strongly encouraged to enable it to ensure the authenticity of your users. ::: + + + + There are two modes of email verification: - `REQUIRED`: Requires that the user's email is verified before they can access your application's frontend or backend routes (that are protected with a session). @@ -113,10 +115,6 @@ init( ### Frontend setup - - - - @@ -227,76 +225,7 @@ Additionally, note that SuperTokens does not send verification emails post user - - - - - - -```tsx -import SuperTokens from "supertokens-web-js"; -import EmailVerification from "supertokens-web-js/recipe/emailverification"; -import Session from "supertokens-web-js/recipe/session"; - -SuperTokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - EmailVerification.init(), - Session.init(), - ], -}); -``` - - - - -Add the following ` -``` - -Then call the `supertokensEmailVerification.init` function as shown below - -```tsx -import supertokens from "supertokens-web-js-script"; -import supertokensEmailVerification from "supertokens-web-js-script/recipe/emailverification"; -import supertokensSession from "supertokens-web-js-script/recipe/session"; -supertokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - supertokensEmailVerification.init(), - supertokensSession.init(), - ], -}); -``` - - - - - - - - -:::success -No specific action required here. -::: - - - - -:::important -SuperTokens will not send the verification email post user signup. You will need to call the email verification API to send the email. Our guide on [protecting API and website routes](./protecting-routes) will go over the changes that need to be made to send the verification email. -::: +See our guide [in the custom UI section](../../custom-ui/enable-email-verification). diff --git a/v2/thirdpartyemailpassword/common-customizations/email-verification/about.mdx b/v2/thirdpartyemailpassword/common-customizations/email-verification/about.mdx index 9737596ff..12e146de8 100644 --- a/v2/thirdpartyemailpassword/common-customizations/email-verification/about.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/email-verification/about.mdx @@ -22,12 +22,14 @@ import VueUIImplementation from "/src/components/reusableSnippets/vueUIImplement # Enable email verification -## Enable email verification - :::important Email verification is turned off by default. It is strongly encouraged to enable it to ensure the authenticity of your users. ::: + + + + There are two modes of email verification: - `REQUIRED`: Requires that the user's email is verified before they can access your application's frontend or backend routes (that are protected with a session). @@ -113,10 +115,6 @@ init( ### Frontend setup - - - - @@ -227,76 +225,7 @@ Additionally, note that SuperTokens does not send verification emails post user - - - - - - -```tsx -import SuperTokens from "supertokens-web-js"; -import EmailVerification from "supertokens-web-js/recipe/emailverification"; -import Session from "supertokens-web-js/recipe/session"; - -SuperTokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - EmailVerification.init(), - Session.init(), - ], -}); -``` - - - - -Add the following ` -``` - -Then call the `supertokensEmailVerification.init` function as shown below - -```tsx -import supertokens from "supertokens-web-js-script"; -import supertokensEmailVerification from "supertokens-web-js-script/recipe/emailverification"; -import supertokensSession from "supertokens-web-js-script/recipe/session"; -supertokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - supertokensEmailVerification.init(), - supertokensSession.init(), - ], -}); -``` - - - - - - - - -:::success -No specific action required here. -::: - - - - -:::important -SuperTokens will not send the verification email post user signup. You will need to call the email verification API to send the email. Our guide on [protecting API and website routes](./protecting-routes) will go over the changes that need to be made to send the verification email. -::: +See our guide [in the custom UI section](../../custom-ui/enable-email-verification). diff --git a/v2/thirdpartypasswordless/common-customizations/email-verification/about.mdx b/v2/thirdpartypasswordless/common-customizations/email-verification/about.mdx index 9737596ff..12e146de8 100644 --- a/v2/thirdpartypasswordless/common-customizations/email-verification/about.mdx +++ b/v2/thirdpartypasswordless/common-customizations/email-verification/about.mdx @@ -22,12 +22,14 @@ import VueUIImplementation from "/src/components/reusableSnippets/vueUIImplement # Enable email verification -## Enable email verification - :::important Email verification is turned off by default. It is strongly encouraged to enable it to ensure the authenticity of your users. ::: + + + + There are two modes of email verification: - `REQUIRED`: Requires that the user's email is verified before they can access your application's frontend or backend routes (that are protected with a session). @@ -113,10 +115,6 @@ init( ### Frontend setup - - - - @@ -227,76 +225,7 @@ Additionally, note that SuperTokens does not send verification emails post user - - - - - - -```tsx -import SuperTokens from "supertokens-web-js"; -import EmailVerification from "supertokens-web-js/recipe/emailverification"; -import Session from "supertokens-web-js/recipe/session"; - -SuperTokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - EmailVerification.init(), - Session.init(), - ], -}); -``` - - - - -Add the following ` -``` - -Then call the `supertokensEmailVerification.init` function as shown below - -```tsx -import supertokens from "supertokens-web-js-script"; -import supertokensEmailVerification from "supertokens-web-js-script/recipe/emailverification"; -import supertokensSession from "supertokens-web-js-script/recipe/session"; -supertokens.init({ - appInfo: { - apiDomain: "...", - appName: "...", - }, - recipeList: [ - // highlight-start - supertokensEmailVerification.init(), - supertokensSession.init(), - ], -}); -``` - - - - - - - - -:::success -No specific action required here. -::: - - - - -:::important -SuperTokens will not send the verification email post user signup. You will need to call the email verification API to send the email. Our guide on [protecting API and website routes](./protecting-routes) will go over the changes that need to be made to send the verification email. -::: +See our guide [in the custom UI section](../../custom-ui/enable-email-verification).