File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed
with-django/with-thirdpartyemailpassword/project
with-fastapi/with-thirdpartyemailpassword
with-flask/with-thirdpartyemailpassword Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## unreleased
9
9
10
+ ### Changed
11
+
12
+ - Update all example apps to initialise dashboard recipe
13
+
10
14
## [ 0.12.3] - 2023-02-27
11
15
- Adds APIs and logic to the dashboard recipe to enable email password based login
12
16
## [ 0.12.2] - 2023-02-23
Original file line number Diff line number Diff line change 10
10
https://docs.djangoproject.com/en/4.0/ref/settings/
11
11
"""
12
12
13
- from pathlib import Path
14
13
import os
15
-
16
- from dotenv import load_dotenv
14
+ from pathlib import Path
17
15
from typing import List
16
+
18
17
from corsheaders .defaults import default_headers
18
+ from dotenv import load_dotenv
19
+
19
20
from supertokens_python import (
20
21
InputAppInfo ,
21
22
SupertokensConfig ,
22
23
get_all_cors_headers ,
23
24
init ,
24
25
)
25
26
from supertokens_python .recipe import (
27
+ dashboard ,
28
+ emailverification ,
26
29
session ,
27
30
thirdpartyemailpassword ,
28
- emailverification ,
29
31
)
30
32
from supertokens_python .recipe .thirdpartyemailpassword import (
31
33
Apple ,
@@ -66,6 +68,7 @@ def get_website_domain():
66
68
mode = "wsgi" ,
67
69
recipe_list = [
68
70
session .init (),
71
+ dashboard .init (),
69
72
emailverification .init ("REQUIRED" ),
70
73
thirdpartyemailpassword .init (
71
74
providers = [
Original file line number Diff line number Diff line change 6
6
from fastapi .responses import JSONResponse , PlainTextResponse
7
7
from starlette .exceptions import ExceptionMiddleware
8
8
from starlette .middleware .cors import CORSMiddleware
9
+
9
10
from supertokens_python import (
10
11
InputAppInfo ,
11
12
SupertokensConfig ,
14
15
)
15
16
from supertokens_python .framework .fastapi import get_middleware
16
17
from supertokens_python .recipe import (
18
+ dashboard ,
19
+ emailverification ,
17
20
session ,
18
21
thirdpartyemailpassword ,
19
- emailverification ,
20
22
)
21
23
from supertokens_python .recipe .session import SessionContainer
22
24
from supertokens_python .recipe .session .framework .fastapi import verify_session
@@ -56,6 +58,7 @@ def get_website_domain():
56
58
framework = "fastapi" ,
57
59
recipe_list = [
58
60
session .init (),
61
+ dashboard .init (),
59
62
emailverification .init ("REQUIRED" ),
60
63
thirdpartyemailpassword .init (
61
64
providers = [
Original file line number Diff line number Diff line change 12
12
)
13
13
from supertokens_python .framework .flask import Middleware
14
14
from supertokens_python .recipe import (
15
+ dashboard ,
15
16
emailverification ,
16
17
session ,
17
18
thirdpartyemailpassword ,
@@ -50,6 +51,7 @@ def get_website_domain():
50
51
framework = "flask" ,
51
52
recipe_list = [
52
53
session .init (),
54
+ dashboard .init (),
53
55
emailverification .init ("REQUIRED" ),
54
56
thirdpartyemailpassword .init (
55
57
providers = [
You can’t perform that action at this time.
0 commit comments