Skip to content

Commit e999f62

Browse files
committed
fix: auth react tests for django and flask
1 parent 45f2889 commit e999f62

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

supertokens_python/recipe/thirdparty/api/implementation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

supertokens_python/recipe/thirdparty/providers/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

supertokens_python/recipe/thirdparty/providers/linkedin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

supertokens_python/recipe/thirdparty/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def __eq__(self, other: object) -> bool:
6666

6767

6868
class 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

7474
class UserInfo:

tests/auth-react/django3x/mysite/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
CreateAndSendCustomTextMessageParameters,
5656
)
5757
from supertokens_python.recipe.session import SessionContainer, SessionRecipe
58-
from supertokens_python.recipe.multitenancy import MultitenancyRecipe
58+
from supertokens_python.recipe.multitenancy.recipe import MultitenancyRecipe
5959
from supertokens_python.recipe.session.interfaces import (
6060
APIInterface as SessionAPIInterface,
6161
)

tests/auth-react/flask-server/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
)
8080
from supertokens_python.recipe.passwordless.interfaces import APIOptions as PAPIOptions
8181
from supertokens_python.recipe.session import SessionRecipe
82-
from supertokens_python.recipe.multitenancy import MultitenancyRecipe
82+
from supertokens_python.recipe.multitenancy.recipe import MultitenancyRecipe
8383
from supertokens_python.recipe.session.framework.flask import verify_session
8484
from 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

0 commit comments

Comments
 (0)