【发布时间】:2021-10-09 15:13:33
【问题描述】:
这个API不好理解……电话号码字段……
documentation 表示它是可选的
电话号码字符串(可选) 用户的电话号码(遵循 E.164 建议),仅对来自 SMS 连接的用户有效。
我的尝试:
#1 请求
{
"email": "adriana.will@yahoo.com",
"phone_number": "",
...
"connection": "Username-Password-Authentication",
...
}
回应
Payload validation error: 'String does not match pattern ^\\+[0-9]{1,15}$: ' on property phone_number (The user's phone number (following the E.164 recommendation), only valid for users from SMS connections).
#2 请求(没有电话号码)
{
"email": "adriana.will@yahoo.com",
"connection": "Username-Password-Authentication",
...
}
回应
Payload validation error: 'Expected type string but found type null' on property phone_number (The user's phone number (following the E.164 recommendation), only valid for users from SMS connections)
#3 请求
{
"email": "adriana.will@yahoo.com",
"phone_number": "+113407178302",
...
"connection": "Username-Password-Authentication",
...
}
回应
phone_number is not allowed
有人请吗?我应该放什么?
【问题讨论】:
-
您使用哪个 Auth0 API 端点发送此有效负载?指向您正在阅读的文档的链接会很有帮助!
-
添加了 API 文档的链接。我正在使用 Auth0 管理 API,他们为您的帐户提供了一个……我的是:https://
.eu.auth0.com
标签: auth0