File tree Expand file tree Collapse file tree 6 files changed +8
-7
lines changed
supertokens_python/recipe/thirdparty Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ async def sign_in_up_post(
9191 email = await provider .config .generate_fake_email (
9292 user_info .third_party_user_id , tenant_id , user_context
9393 ),
94- email_verified = True ,
94+ is_verified = True ,
9595 )
9696
9797 email = user_info .email .id if user_info .email is not None else None
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ async def get_user_info(
5555 for info in email_info :
5656 if info .get ("primary" ):
5757 result .email = UserInfoEmail (
58- email = info .get ("email" ), email_verified = info .get ("verified" )
58+ email = info .get ("email" ), is_verified = info .get ("verified" )
5959 )
6060
6161 return result
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ async def get_user_info(
8383 third_party_user_id = raw_user_info_from_provider .from_user_info_api .get ("id" ), # type: ignore
8484 email = UserInfoEmail (
8585 email = raw_user_info_from_provider .from_user_info_api .get ("email" ), # type: ignore
86- email_verified = False ,
86+ is_verified = False ,
8787 ),
8888 )
8989
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ def __eq__(self, other: object) -> bool:
6666
6767
6868class UserInfoEmail :
69- def __init__ (self , email : str , email_verified : bool ):
69+ def __init__ (self , email : str , is_verified : bool ):
7070 self .id : str = email
71- self .is_verified : bool = email_verified
71+ self .is_verified : bool = is_verified
7272
7373
7474class UserInfo :
Original file line number Diff line number Diff line change 5555 CreateAndSendCustomTextMessageParameters ,
5656)
5757from supertokens_python .recipe .session import SessionContainer , SessionRecipe
58- from supertokens_python .recipe .multitenancy import MultitenancyRecipe
58+ from supertokens_python .recipe .multitenancy . recipe import MultitenancyRecipe
5959from supertokens_python .recipe .session .interfaces import (
6060 APIInterface as SessionAPIInterface ,
6161)
Original file line number Diff line number Diff line change 7979)
8080from supertokens_python .recipe .passwordless .interfaces import APIOptions as PAPIOptions
8181from supertokens_python .recipe .session import SessionRecipe
82- from supertokens_python .recipe .multitenancy import MultitenancyRecipe
82+ from supertokens_python .recipe .multitenancy . recipe import MultitenancyRecipe
8383from supertokens_python .recipe .session .framework .flask import verify_session
8484from supertokens_python .recipe .session .interfaces import (
8585 APIInterface as SessionAPIInterface ,
@@ -970,6 +970,7 @@ async def authorisation_url_get(
970970 contact_config = ContactPhoneOnlyConfig (),
971971 flow_type = "USER_INPUT_CODE_AND_MAGIC_LINK" ,
972972 providers = providers_list ,
973+ email_delivery = thirdpartypasswordless .EmailDeliveryConfig (CustomPlessEmailService ()),
973974 sms_delivery = thirdpartypasswordless .SMSDeliveryConfig (CustomSMSService ()),
974975 override = thirdpartypasswordless .InputOverrideConfig (
975976 apis = override_thirdpartypasswordless_apis
You can’t perform that action at this time.
0 commit comments