跳到主要内容

auth.sms

短信验证码登录

  • 请求路由: auth.sms
  • 交互模型: Request Response
  • 访问限制: 无

请求​

RSocket.rr({
"route" : "auth.sms",
"data" : {
"mobile" : "13900010001",
"vcode" : "761818",
"tenantId" : "aspiretop",
"scope" : "shop"
}
});

请求参数​

名称类型必须说明
mobileString是仅绑定帐户时需要手机号
vcodeString是验证码
tenantIdString是租户id
scopeString是应用scope标识
doCreateBoolean否用户不存在时是否自动创建

返回​

认证结果

{
"token" : "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pb......AU3eAWOfMmNN8CMIlIvkNw",
"expires" : 3600
}

返回属性​

名称类型说明
tokenStringAPI访问令牌
expiresNumber令牌有效期,单位秒

下载结果模型定义