Skip to content
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

Issue with Textlocal Integration for Phone Login #1874

Open
ejupialked opened this issue Dec 13, 2024 · 0 comments
Open

Issue with Textlocal Integration for Phone Login #1874

ejupialked opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ejupialked
Copy link

ejupialked commented Dec 13, 2024

According to the documentation on phone login, Textlocal is listed as a supported provider, with instructions to create API keys via Textlocal signup. However, based on the code, it appears that the implementation is using Textlocal India (api.textlocal.in) rather than the global API (api.txtlocal.com).

The base URL in the code at this line does not align with the URL documented in the Textlocal OTP API documentation (api.txtlocal.com).

Code used for testing:

const { data, error } = await supabase.auth.signInWithOtp({ phone: "****", });

Error encountered:

{ "session": null, "user": null, "error": "AuthApiError: Error sending confirmation OTP to provider: textlocal error: Invalid login details (code: 3) message" }

The actual Textlocal API seems to be misconfigured or not used correctly in the current implementation. I believe both textlocal.in (India) and textlocal.com (global) should be supported. The documentation is unclear and needs to be more explicit regarding the creation of API keys and which version of Textlocal to use.

Can someone help address this issue?

Thanks

@ejupialked ejupialked added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant