You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm trying to use test_otp codes via signInWithOtp for international phone numbers, but it doesn't seem to work when I have a number that is prefixed with +1.... Has anyone else seen this behaviour?
hey @franzwarning, thanks for reporting this, we've made a fix for it - the issue is due to the auth service not applying the same basic formatting rules for the test OTPs in the config but it does not affect the SMS delivery to the underlying provider used (the country code will be respected)
Activity
encima commentedon Apr 30, 2024
Hi @franzwarning
thanks for opening. We would need some more information here please.
I cannot reproduce your issue and the international format is supported (docs)
franzwarning commentedon Apr 30, 2024
To reproduce:
w/ a config.toml
It will try to use the provider instead of using the test_otp code.
However, if you use a non-international number (just 9998887777), everything works.
kangmingtay commentedon Apr 30, 2024
hey @franzwarning, thanks for reporting this, we've made a fix for it - the issue is due to the auth service not applying the same basic formatting rules for the test OTPs in the config but it does not affect the SMS delivery to the underlying provider used (the country code will be respected)
franzwarning commentedon Apr 30, 2024
Thank you for the fast response!
fix: format test otps (#1567)
choim4389 commentedon Jul 25, 2024
I facing error
(last key "auth.sms.test_otp"): expected '.' or '=', but got '+' insteadwhen try to set test_otp inconfig.tomlfor local development.how to set international number as test number?
encima commentedon Jul 29, 2024
@choim4389 wrap the phone number in quotes as well
fix: format test otps (supabase#1567)
fix: format test otps (supabase#1567)
fix: format test otps (supabase#1567)
fix: format test otps (#1567)
fix: format test otps (supabase#1567)
fix: format test otps (#1567)