outsparkled
09/08/2022, 2:14 PMrp_st
09/08/2022, 2:20 PMrp_st
09/08/2022, 2:20 PMoutsparkled
09/08/2022, 2:21 PMoutsparkled
09/08/2022, 2:21 PMoutsparkled
09/08/2022, 2:21 PMrp_st
09/08/2022, 2:22 PMrp_st
09/08/2022, 2:22 PMrp_st
09/08/2022, 2:23 PMoutsparkled
09/08/2022, 2:23 PMoutsparkled
09/08/2022, 2:23 PMoutsparkled
09/08/2022, 2:23 PMoutsparkled
09/08/2022, 2:23 PMrp_st
09/08/2022, 2:24 PMoutsparkled
09/08/2022, 2:24 PMpython
if email is None or email_verified is None:
return SignInUpPostNoEmailGivenByProviderResponse()
because this ^ is in the implementationrp_st
09/08/2022, 2:24 PMrp_st
09/08/2022, 2:25 PMoutsparkled
09/08/2022, 2:25 PMoutsparkled
09/08/2022, 2:25 PMoutsparkled
09/08/2022, 3:55 PMpy
async def get_profile_info(self, auth_code_response, user_context):
...
provider_discord = Discord(
...
)
provider_discord.get_profile_info = get_profile_info
just to clarify, did you mean something like this when you said override?rp_st
09/08/2022, 3:56 PMrp_st
09/08/2022, 3:56 PMprovider_discord
and call that in your get_profile_info
function.rp_st
09/08/2022, 3:56 PMoutsparkled
09/08/2022, 3:57 PMreturn await handle_sign_in_up_api(self.api_implementation, api_options)
File "{path}/backend/venv/lib/python3.9/site-packages/supertokens_python/recipe/thirdparty/api/signinup.py", line 79, in handle_sign_in_up_api
result = await api_implementation.sign_in_up_post(
File "{path}/backend/./main.py", line 27, in sign_in_up_post
response = await original_sign_in_up_post(provider, code, redirect_uri, client_id, auth_code_response,
File "{path}/backend/venv/lib/python3.9/site-packages/supertokens_python/recipe/thirdparty/api/implementation.py", line 150, in sign_in_up_post
user_info: UserInfo = await provider.get_profile_info(
TypeError: get_profile_info() missing 1 required positional argument: 'user_context'
outsparkled
09/08/2022, 3:58 PMrp_st
09/08/2022, 3:59 PMself
argoutsparkled
09/08/2022, 4:00 PMrp_st
09/08/2022, 4:00 PMoutsparkled
09/08/2022, 4:00 PMoutsparkled
09/08/2022, 4:03 PMoutsparkled
09/08/2022, 4:03 PMoutsparkled
09/08/2022, 4:03 PMoutsparkled
09/08/2022, 4:04 PMrp_st
09/08/2022, 4:05 PMoutsparkled
09/08/2022, 4:07 PMoutsparkled
09/08/2022, 4:07 PMrp_st
09/08/2022, 4:08 PMoutsparkled
09/08/2022, 7:05 PMrp_st
09/08/2022, 7:10 PM