DeviceCodeResponse type
DeviceCode 由安全令牌服務裝置代碼端點回傳,包含裝置代碼流程所需的資訊。
- userCode:使用者在驗證 URI 認證時需提供的程式碼
- deviceCode:應包含在存取權杖請求中的程式碼
- 驗證 URI:使用者可進行驗證的 URI
- expiresIn:裝置程式碼的過期時間(以秒計)
- 區間:STS 應在 輪詢的間隔
- 訊息:應顯示給使用者的訊息
type DeviceCodeResponse = {
deviceCode: string
expiresIn: number
interval: number
message: string
userCode: string
verificationUri: string
}