When trying to call the `auth/signinup` endpoint o...
# support-questions-legacy
d
When trying to call the
auth/signinup
endpoint on my backend (FastAPI), I am encountering an exception:
Copy code
File "/Users/dave/.local/share/virtualenvs/backend-9LBKwWDR/lib/python3.9/site-packages/supertokens_python/recipe/thirdpartyemailpassword/api/implementation.py", line 144, in thirdparty_sign_in_up_post
    result = await self.tp_sign_in_up_post(
  File "/Users/dave/.local/share/virtualenvs/backend-9LBKwWDR/lib/python3.9/site-packages/supertokens_python/recipe/thirdparty/api/implementation.py", line 152, in sign_in_up_post
    user_info: UserInfo = await provider.get_profile_info(
  File "/Users/dave/.local/share/virtualenvs/backend-9LBKwWDR/lib/python3.9/site-packages/supertokens_python/recipe/thirdparty/providers/google.py", line 68, in get_profile_info
    user_id = user_info["id"]
KeyError: 'id'
Btw, I'm trying to send the
id_token
(without a
code
) as part of the
authCodeResponse
.
I believe this is a bug in the code, and I have created a patch that I'm willing to contribute back to the community. First, however, I'd like to make sure I'm not missing a solution that's already existing!
r
Perhaps @sattvikc can help here.
d
Actually, I found this thread (https://discord.com/channels/603466164219281420/1066345597407334400/1067000178395058206) and implemented something similar. It's actually working pretty well without having to change anything on the backend
r
Yes. Cause you are setting the access token to that value on the frontend
2 Views