-
-
Notifications
You must be signed in to change notification settings - Fork 48
supabase.auth.sign_in_with_otp with phone login throws error #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Running into a similar problem using
Calling this function causes the same error in my app
An email is still sent to the Details
|
Hey @hgseo16 |
Hi @atj3097, I don't have merge access to the PR I made so I notified the maintainer of |
@hgseo16 do you know why this error might still be happening for email? sorry for reviving this thread, but currently going through this problem. edit, forgot to force update my version, sorry for the ping. |
Hey team, Can I check if the issue perists? @kunal-sharda do you mind sharing the code snippet for email? I suspect the pydantic models haven't been updated for v2. |
Closing this as fixed as there hasn't been any reports of this issue persisting in newer versions of the library. |
Getting the same error..
|
Ah yeah this is probably from the new |
@J0 I'm still encountering the issue as well - was the separate issue ever created? |
Hey @athon-millane, I don't think it was, sorry about that. Thanks for flagging this |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
While the following function
supabase.auth.sign_in_with_otp(params={"phone": phone, "token": verification_code, "type": "sms"})
successfully sends an OTP to the phone number described, the request returns the following error.To Reproduce
Expected behavior
Should return an AuthResponse class.
Screenshots

Environment (please complete the following information):
Additional context
It seems that there is an issue occurring when the
sign_in_with_otp
function is called. The problem seems to be happening when the function tries to return the result ofself._request(...)
, which is a function call in thegotrue_base_api.py
module. When the_request
function is called, the result variable is an empty dictionary {} which may be causing an issue during theparse_auth_response
function invocation in the gotrue package.Let me know what you guys think! I would love to try to help debug this issue as well.
The text was updated successfully, but these errors were encountered: