JoYiHubv0.30.0

auth verify

Agent: read the one-time code from stdin and finish authentication

语法

joyihub auth verify <challenge-id>

参数

位置参数

属性

类型

选项

属性

类型

示例

joyihub auth verify challenge-id

响应示例

{
  "credential": {
    "expires_at": "2026-09-25T12:00:00Z",
    "id": "credential-id",
    "scopes": [
      "projects:read"
    ]
  },
  "logged_in": true,
  "origin": "https://joyihub.thebinwang.com",
  "user": {
    "id": "user-id"
  }
}

返回字段

属性

类型

错误码

USAGE_ERROR · Exit 2

参数、取值或本地输入不合法

{
  "error": {
    "code": "USAGE_ERROR",
    "message": "参数、取值或本地输入不合法"
  }
}

INVALID_VERIFICATION_CODE · Exit 2

验证码无效或已过期

{
  "error": {
    "code": "INVALID_VERIFICATION_CODE",
    "message": "验证码无效或已过期"
  }
}

本页目录