1919 emailverification ,
2020 session ,
2121 thirdpartyemailpassword ,
22+ usermetadata ,
2223)
2324from supertokens_python .recipe .session import SessionContainer
2425from supertokens_python .recipe .session .framework .fastapi import verify_session
@@ -54,6 +55,7 @@ def get_website_domain():
5455 session .init (),
5556 dashboard .init (),
5657 emailverification .init ("REQUIRED" ),
58+ usermetadata .init (),
5759 thirdpartyemailpassword .init (
5860 providers = [
5961 thirdpartyemailpassword .ProviderInput (
@@ -63,10 +65,12 @@ def get_website_domain():
6365 thirdpartyemailpassword .ProviderClientConfig (
6466 client_id = os .environ ["GOOGLE_CLIENT_ID" ],
6567 client_secret = os .environ ["GOOGLE_CLIENT_SECRET" ],
68+ client_type = "web" ,
6669 ),
6770 thirdpartyemailpassword .ProviderClientConfig (
6871 client_id = os .environ ["GOOGLE_CLIENT_ID_MOBILE" ],
6972 client_secret = os .environ ["GOOGLE_CLIENT_SECRET_MOBILE" ],
73+ client_type = "mobile" ,
7074 ),
7175 ],
7276 ),
@@ -78,10 +82,12 @@ def get_website_domain():
7882 thirdpartyemailpassword .ProviderClientConfig (
7983 client_id = os .environ ["GITHUB_CLIENT_ID" ],
8084 client_secret = os .environ ["GITHUB_CLIENT_SECRET" ],
85+ client_type = "web" ,
8186 ),
8287 thirdpartyemailpassword .ProviderClientConfig (
8388 client_id = os .environ ["GITHUB_CLIENT_ID_MOBILE" ],
8489 client_secret = os .environ ["GITHUB_CLIENT_SECRET_MOBILE" ],
90+ client_type = "mobile" ,
8591 ),
8692 ],
8793 )
@@ -92,6 +98,7 @@ def get_website_domain():
9298 clients = [
9399 thirdpartyemailpassword .ProviderClientConfig (
94100 client_id = os .environ ["APPLE_CLIENT_ID" ],
101+ client_type = "web" ,
95102 additional_config = {
96103 "keyId" : os .environ ["APPLE_KEY_ID" ],
97104 "teamId" : os .environ ["APPLE_TEAM_ID" ],
@@ -100,6 +107,7 @@ def get_website_domain():
100107 ),
101108 thirdpartyemailpassword .ProviderClientConfig (
102109 client_id = os .environ ["APPLE_CLIENT_ID_MOBILE" ],
110+ client_type = "mobile" ,
103111 additional_config = {
104112 "keyId" : os .environ ["APPLE_KEY_ID" ],
105113 "teamId" : os .environ ["APPLE_TEAM_ID" ],
@@ -111,7 +119,7 @@ def get_website_domain():
111119 ),
112120 thirdpartyemailpassword .ProviderInput (
113121 config = thirdpartyemailpassword .ProviderConfig (
114- third_party_id = "googleworkspaces " ,
122+ third_party_id = "google-workspaces " ,
115123 clients = [
116124 thirdpartyemailpassword .ProviderClientConfig (
117125 client_id = os .environ ["GOOGLE_WORKSPACES_CLIENT_ID" ],
0 commit comments