ExternalTokenResponse type
用于加载外部令牌以缓存的响应对象。
- token_type:指示标记类型值。 AZURE AD 支持的唯一类型是 Bearer。
- 范围:access_token有效的范围。
- expires_in:访问令牌的有效时间(以秒为单位)。
- id_token:JSON Web 令牌(JWT)。 应用可以解码此令牌的段,以请求有关登录用户的信息。
- refresh_token:OAuth 2.0 刷新令牌。 应用可以在当前访问令牌过期后使用此令牌获取其他访问令牌。
- access_token:请求的访问令牌。 应用可以使用此令牌对受保护的资源(如 Web API)进行身份验证。
- client_info:客户端信息对象
type ExternalTokenResponse = Pick<
ServerAuthorizationTokenResponse,
| "token_type"
| "scope"
| "expires_in"
| "ext_expires_in"
| "id_token"
| "refresh_token"
| "refresh_token_expires_in"
| "foci"
> & { access_token?: string; client_info?: string }