@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
## [ unreleased]
10
10
11
+ - Return ` raw_user_info_from_provider ` in github provider [ #474 ]
12
+
11
13
## [ 0.27.0] - 2024-12-30
12
14
13
15
- Added OAuth2Provider recipe
@@ -277,7 +279,7 @@ async def change_email(req: ChangeEmailBody, session: SessionContainer = Depends
277
279
# Update the email
278
280
await update_email_or_password(
279
281
session.get_recipe_user_id(),
280
- email,
282
+ email,
281
283
)
282
284
283
285
# ...
@@ -360,7 +362,7 @@ from supertokens_python.types import RecipeUserId
360
362
361
363
def functions_override (original_implementation : RecipeInterface):
362
364
o_create_new_session = original_implementation.create_new_session
363
-
365
+
364
366
async def n_create_new_session (
365
367
user_id : str ,
366
368
recipe_user_id : RecipeUserId,
@@ -377,7 +379,7 @@ def functions_override(original_implementation: RecipeInterface):
377
379
return await o_create_new_session(user_id, recipe_user_id, access_token_payload, session_data_in_database, disable_anti_csrf, tenant_id, user_context)
378
380
379
381
original_implementation.create_new_session = n_create_new_session
380
-
382
+
381
383
return original_implementation
382
384
383
385
session.init(override = session.InputOverrideConfig(functions = functions_override))
@@ -395,7 +397,7 @@ from supertokens_python.types import RecipeUserId
395
397
396
398
def functions_override (original_implementation : RecipeInterface):
397
399
o_create_new_session = original_implementation.create_new_session
398
-
400
+
399
401
async def n_create_new_session (
400
402
user_id : str ,
401
403
recipe_user_id : RecipeUserId,
@@ -412,7 +414,7 @@ def functions_override(original_implementation: RecipeInterface):
412
414
return await o_create_new_session(user_id, recipe_user_id, access_token_payload, session_data_in_database, disable_anti_csrf, tenant_id, user_context)
413
415
414
416
original_implementation.create_new_session = n_create_new_session
415
-
417
+
416
418
return original_implementation
417
419
418
420
session.init(override = session.InputOverrideConfig(functions = functions_override))
@@ -632,7 +634,7 @@ thirdparty.init(
632
634
third_party_id = " google" ,
633
635
# rest of the config
634
636
),
635
-
637
+
636
638
# Add the following line to make this provider available in non-public tenants by default
637
639
include_in_non_public_tenants_by_default = True
638
640
),
@@ -641,7 +643,7 @@ thirdparty.init(
641
643
third_party_id = " github" ,
642
644
# rest of the config
643
645
),
644
-
646
+
645
647
# Add the following line to make this provider available in non-public tenants by default
646
648
include_in_non_public_tenants_by_default = True
647
649
),
@@ -733,7 +735,7 @@ for tenant in tenants_res.tenants:
733
735
734
736
- The way to get user information has changed:
735
737
- If you are using ` get_users_by_email ` from ` thirdpartyemailpassword ` recipe:
736
-
738
+
737
739
Before:
738
740
```python
739
741
from supertokens_python.recipe.thirdpartyemailpassword.syncio import get_users_by_email
@@ -745,20 +747,20 @@ for tenant in tenants_res.tenants:
745
747
```python
746
748
from supertokens_python.recipe.thirdparty.syncio import get_users_by_email as get_users_by_email_third_party
747
749
from supertokens_python.recipe.emailpassword.syncio import get_user_by_email as get_user_by_email_emailpassword
748
-
750
+
749
751
third_party_user_info = get_users_by_email_third_party("public", "[email protected] ")
750
752
751
753
email_password_user_info = get_user_by_email_emailpassword("public", "[email protected] ")
752
754
753
755
if email_password_user_info is not None:
754
756
print(email_password_user_info)
755
-
757
+
756
758
if len(third_party_user_info) > 0:
757
759
print(third_party_user_info)
758
760
```
759
761
760
762
- If you are using ` get_user_id ` from ` thirdpartyemailpassword ` recipe:
761
-
763
+
762
764
Before:
763
765
``` python
764
766
from supertokens_python.recipe.thirdpartyemailpassword.syncio import get_user_by_id
@@ -783,9 +785,9 @@ for tenant in tenants_res.tenants:
783
785
else :
784
786
print (thirdparty_user)
785
787
```
786
-
788
+
787
789
- If you are using `get_users_by_email` from `thirdpartypasswordless` recipe:
788
-
790
+
789
791
Before:
790
792
```python
791
793
from supertokens_python.recipe.thirdpartypasswordless.syncio import get_users_by_email
@@ -797,20 +799,20 @@ for tenant in tenants_res.tenants:
797
799
```python
798
800
from supertokens_python.recipe.thirdparty.syncio import get_users_by_email as get_users_by_email_third_party
799
801
from supertokens_python.recipe.passwordless.syncio import get_user_by_email as get_user_by_email_passwordless
800
-
802
+
801
803
third_party_user_info
= get_users_by_email_third_party(
" public" ,
" [email protected] " )
802
804
803
805
passwordless_user_info
= get_user_by_email_passwordless(
" public" ,
" [email protected] " )
804
806
805
807
if passwordless_user_info is not None :
806
808
print (passwordless_user_info)
807
-
809
+
808
810
if len (third_party_user_info) > 0 :
809
811
print (third_party_user_info)
810
812
```
811
813
812
814
- If you are using `get_user_id` from `thirdpartypasswordless` recipe:
813
-
815
+
814
816
Before:
815
817
```python
816
818
from supertokens_python.recipe.thirdpartypasswordless.syncio import get_user_by_id
@@ -1022,7 +1024,7 @@ With this update, verify_session will return a 401 error if it detects multiple
1022
1024
)
1023
1025
```
1024
1026
1025
- - In the session recipe, if there is an `UNAUTHORISED ` or `TOKEN_THEFT_DETECTED ` error, the session tokens are cleared in the response regardless of if you have provided your own `error_handlers` in `session.init`
1027
+ - In the session recipe, if there is an `UNAUTHORISED ` or `TOKEN_THEFT_DETECTED ` error, the session tokens are cleared in the response regardless of if you have provided your own `error_handlers` in `session.init`
1026
1028
1027
1029
# # [0.17.0] - 2023-11-14
1028
1030
- Fixes `create_reset_password_link` in the emailpassword recipe wherein we passed the `rid` instead of the token in the link
0 commit comments