【发布时间】:2022-01-11 16:56:41
【问题描述】:
我正在使用带有文档和实现的新包,但是每次我尝试通过控制台或通过函数将 otp 发送到号码时,它都会返回以下错误
'''Sending OTP failed: Error sending sms otp: json: cannot unmarshal number into Go struct field SmsStatus.status of type string'''
只需简单的 supabase 调用即可使用电话号码登录,然后将 otp 发送到特定号码
Future<void> signInUser(String phonenum) async {
response = await supabaseClient.auth.signIn(
phone: phonenum,
options: AuthOptions(redirectTo: 'https://vmlkpbfoohvcmnzgkkpr.supabase.co'),
);
if (response.error != null) {
// Error
print(response.data.toString());
print('Error: ${response.error?.message}');
} else {
// Success
final session = response.data;
} }'''
【问题讨论】:
-
你能分享你正在使用的代码吗?
-
卡在同一个问题上。尝试发出 http 请求并尝试使用该库,但仍然出现相同的错误