DeviceCodeResponse type

安全令牌服务设备代码终结点返回的 DeviceCode 包含设备代码流所需的信息。

  • userCode:在验证 URI 上进行身份验证时用户需要提供的代码
  • deviceCode:应包含在访问令牌请求中的代码
  • verificationUri:用户可以在其中进行身份验证的 URI
  • expiresIn:设备代码的过期时间(以秒为单位)
  • interval:应在其中轮询 STS 的间隔
  • 消息:应向用户显示的消息
type DeviceCodeResponse = {
  deviceCode: string
  expiresIn: number
  interval: number
  message: string
  userCode: string
  verificationUri: string
}