Skip to content

Commit 0283c00

Browse files
committed
feat: example app update for emailverification
1 parent 984dfc4 commit 0283c00

File tree

3 files changed

+18
-3
lines changed
  • examples
    • with-django/with-thirdpartyemailpassword/project
    • with-fastapi/with-thirdpartyemailpassword
    • with-flask/with-thirdpartyemailpassword

3 files changed

+18
-3
lines changed

examples/with-django/with-thirdpartyemailpassword/project/settings.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
get_all_cors_headers,
2323
init,
2424
)
25-
from supertokens_python.recipe import session, thirdpartyemailpassword
25+
from supertokens_python.recipe import (
26+
session,
27+
thirdpartyemailpassword,
28+
emailverification,
29+
)
2630
from supertokens_python.recipe.thirdpartyemailpassword import (
2731
Apple,
2832
Discord,
@@ -62,6 +66,7 @@ def get_website_domain():
6266
mode="wsgi",
6367
recipe_list=[
6468
session.init(),
69+
emailverification.init("REQUIRED"),
6570
thirdpartyemailpassword.init(
6671
providers=[
6772
Google(

examples/with-fastapi/with-thirdpartyemailpassword/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
init,
1414
)
1515
from supertokens_python.framework.fastapi import get_middleware
16-
from supertokens_python.recipe import session, thirdpartyemailpassword
16+
from supertokens_python.recipe import (
17+
session,
18+
thirdpartyemailpassword,
19+
emailverification,
20+
)
1721
from supertokens_python.recipe.session import SessionContainer
1822
from supertokens_python.recipe.session.framework.fastapi import verify_session
1923
from supertokens_python.recipe.thirdpartyemailpassword import (
@@ -52,6 +56,7 @@ def get_website_domain():
5256
framework="fastapi",
5357
recipe_list=[
5458
session.init(),
59+
emailverification.init("REQUIRED"),
5560
thirdpartyemailpassword.init(
5661
providers=[
5762
Google(

examples/with-flask/with-thirdpartyemailpassword/app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
init,
1111
)
1212
from supertokens_python.framework.flask import Middleware
13-
from supertokens_python.recipe import session, thirdpartyemailpassword
13+
from supertokens_python.recipe import (
14+
session,
15+
thirdpartyemailpassword,
16+
emailverification,
17+
)
1418
from supertokens_python.recipe.session.framework.flask import verify_session
1519
from supertokens_python.recipe.thirdpartyemailpassword import (
1620
Apple,
@@ -45,6 +49,7 @@ def get_website_domain():
4549
framework="flask",
4650
recipe_list=[
4751
session.init(),
52+
emailverification.init("REQUIRED"),
4853
thirdpartyemailpassword.init(
4954
providers=[
5055
Google(

0 commit comments

Comments
 (0)