File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
with-django/with-thirdpartyemailpassword/project
with-fastapi/with-thirdpartyemailpassword
with-flask/with-thirdpartyemailpassword Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1010https://docs.djangoproject.com/en/4.0/ref/settings/
1111"""
1212
13- from pathlib import Path
1413import os
15-
16- from dotenv import load_dotenv
14+ from pathlib import Path
1715from typing import List
16+
1817from corsheaders .defaults import default_headers
18+ from dotenv import load_dotenv
19+
1920from supertokens_python import (
2021 InputAppInfo ,
2122 SupertokensConfig ,
2223 get_all_cors_headers ,
2324 init ,
2425)
2526from supertokens_python .recipe import (
27+ dashboard ,
28+ emailverification ,
2629 session ,
2730 thirdpartyemailpassword ,
28- emailverification ,
2931)
3032from supertokens_python .recipe .thirdpartyemailpassword import (
3133 Apple ,
@@ -66,6 +68,7 @@ def get_website_domain():
6668 mode = "wsgi" ,
6769 recipe_list = [
6870 session .init (),
71+ dashboard .init (),
6972 emailverification .init ("REQUIRED" ),
7073 thirdpartyemailpassword .init (
7174 providers = [
Original file line number Diff line number Diff line change 66from fastapi .responses import JSONResponse , PlainTextResponse
77from starlette .exceptions import ExceptionMiddleware
88from starlette .middleware .cors import CORSMiddleware
9+
910from supertokens_python import (
1011 InputAppInfo ,
1112 SupertokensConfig ,
1415)
1516from supertokens_python .framework .fastapi import get_middleware
1617from supertokens_python .recipe import (
18+ dashboard ,
19+ emailverification ,
1720 session ,
1821 thirdpartyemailpassword ,
19- emailverification ,
2022)
2123from supertokens_python .recipe .session import SessionContainer
2224from supertokens_python .recipe .session .framework .fastapi import verify_session
@@ -56,6 +58,7 @@ def get_website_domain():
5658 framework = "fastapi" ,
5759 recipe_list = [
5860 session .init (),
61+ dashboard .init (),
5962 emailverification .init ("REQUIRED" ),
6063 thirdpartyemailpassword .init (
6164 providers = [
Original file line number Diff line number Diff line change 1212)
1313from supertokens_python .framework .flask import Middleware
1414from supertokens_python .recipe import (
15+ dashboard ,
1516 emailverification ,
1617 session ,
1718 thirdpartyemailpassword ,
@@ -50,6 +51,7 @@ def get_website_domain():
5051 framework = "flask" ,
5152 recipe_list = [
5253 session .init (),
54+ dashboard .init (),
5355 emailverification .init ("REQUIRED" ),
5456 thirdpartyemailpassword .init (
5557 providers = [
You can’t perform that action at this time.
0 commit comments