Skip to content

Commit ac7d5c9

Browse files
authored
fix: unit test (#521)
1 parent a71b13b commit ac7d5c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/emailpassword/test_emailverify.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,9 @@ async def send_email(
13401340
email_verify_link = template_vars.email_verify_link
13411341

13421342
def get_origin(_: Optional[BaseRequest], user_context: Dict[str, Any]) -> str:
1343-
return user_context["url"]
1343+
if "url" in user_context:
1344+
return user_context["url"]
1345+
return "https://supertokens.io"
13441346

13451347
init(
13461348
supertokens_config=SupertokensConfig("http://localhost:3567"),

0 commit comments

Comments
 (0)