DeviceCodeResponse type

デバイス コード フローに必要な情報を含む、セキュリティ トークン サービスのデバイス コード エンドポイントによって返される DeviceCode。

  • userCode: 検証 URI で認証するときにユーザーが指定する必要があるコード
  • deviceCode: アクセス トークンの要求に含める必要があるコード
  • verificationUri: ユーザーが認証できる URI
  • expiresIn: デバイス コードの有効期限 (秒単位)
  • interval: STS をポーリングする間隔
  • message: ユーザーに表示する必要があるメッセージ
type DeviceCodeResponse = {
  deviceCode: string
  expiresIn: number
  interval: number
  message: string
  userCode: string
  verificationUri: string
}