跳到主要内容

用户名密码登录

POST 

/auth/v1/signin

用户名密码登录使用username和password; 手机号验证码登录,username+verification_token

Request

Query Parameters

    client_id string

    应用对应的客户端id,默认为环境id,可以不传

Header Parameters

    x-device-id stringrequired

    设备id

Body

    username 用户名 (string)required
    password password 密码 (string)
    verification_token 通过手机验证码登录: 验证码TOKEN (string)

Responses

A successful response.

Response Headers
    Schema
      token_type token类型, 如Bearer类型 (string)
      access_token 获取的jwt access_token (string)
      refresh_token access_token对应的refresh_token, access_token过期可通过refresh_token刷新获取新的access_token (string)
      id_token 用户身份信息的声明 (string)
      expires_in int32
      scope 授权范围 (string)
      sub 用户的唯一id (string)
      groups string[]
    Loading...