2525 CreateResetPasswordWrongUserIdError ,
2626 CreateResetPasswordLinkUknownUserIdError ,
2727 CreateResetPasswordLinkOkResult ,
28- CreateResetPasswordEmailUnknownUserIdError ,
29- CreateResetPasswordEmailOkResult ,
30- RawUserInfoFromProvider ,
28+ SendResetPasswordEmailUnknownUserIdError ,
29+ SendResetPasswordEmailEmailOkResult
3130)
3231from supertokens_python .recipe .emailpassword .utils import get_password_reset_link
3332
@@ -63,29 +62,6 @@ async def get_user_by_third_party_info(
6362 )
6463
6564
66- async def thirdparty_sign_in_up (
67- third_party_id : str ,
68- third_party_user_id : str ,
69- email : str ,
70- oauth_tokens : Dict [str , Any ],
71- raw_user_info_from_provider : RawUserInfoFromProvider ,
72- tenant_id : Optional [str ] = None ,
73- user_context : Optional [Dict [str , Any ]] = None ,
74- ):
75- if user_context is None :
76- user_context = {}
77-
78- return await ThirdPartyEmailPasswordRecipe .get_instance ().recipe_implementation .thirdparty_sign_in_up (
79- third_party_id ,
80- third_party_user_id ,
81- email ,
82- oauth_tokens ,
83- raw_user_info_from_provider ,
84- tenant_id or DEFAULT_TENANT_ID ,
85- user_context ,
86- )
87-
88-
8965async def thirdparty_manually_create_or_update_user (
9066 third_party_id : str ,
9167 third_party_user_id : str ,
@@ -245,7 +221,7 @@ async def send_reset_password_email(
245221):
246222 link = await create_reset_password_link (user_id , tenant_id , user_context )
247223 if isinstance (link , CreateResetPasswordLinkUknownUserIdError ):
248- return CreateResetPasswordEmailUnknownUserIdError ()
224+ return SendResetPasswordEmailUnknownUserIdError ()
249225
250226 user = await get_user_by_id (user_id , user_context )
251227 assert user is not None
@@ -259,4 +235,4 @@ async def send_reset_password_email(
259235 user_context ,
260236 )
261237
262- return CreateResetPasswordEmailOkResult ()
238+ return SendResetPasswordEmailEmailOkResult ()
0 commit comments