Skip to content

Commit

Permalink
fixes stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 12, 2024
1 parent ad7c89e commit e654e94
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 13 additions & 1 deletion tests/test-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,19 @@ async def custom_unauthorised_callback(
thirdparty.init(
sign_in_and_up_feature=thirdparty.SignInAndUpFeature(
providers=providers
)
),
override=thirdparty.InputOverrideConfig(
functions=override_builder_with_logging(
"ThirdParty.override.functions",
recipe_config_json.get("override", {}).get(
"functions", None
),
),
apis=override_builder_with_logging(
"ThirdParty.override.apis",
recipe_config_json.get("override", {}).get("apis", None),
),
),
)
)

Expand Down
5 changes: 4 additions & 1 deletion tests/test-server/test_functions_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ async def is_email_verified(
def tp_override_apis(
original_implementation: ThirdPartyAPIInterface,
) -> ThirdPartyAPIInterface:

og_sign_in_up_post = original_implementation.sign_in_up_post

async def sign_in_up_post(
provider: Provider,
redirect_uri_info: Optional[RedirectUriInfo],
Expand All @@ -413,7 +416,7 @@ async def sign_in_up_post(
):
user_context["DO_LINK"] = json_body["userContext"]["DO_LINK"]

result = await original_implementation.sign_in_up_post(
result = await og_sign_in_up_post(
provider,
redirect_uri_info,
oauth_tokens,
Expand Down

0 comments on commit e654e94

Please sign in to comment.