package com.css.txw.sso.api.oauth2.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Schema(description = "RPC 服务 - OAuth2 访问令牌的校验 Response DTO")
@Data
public class OAuth2AccessTokenCheckRespDTO implements Serializable {

    @Schema(description = "是否刷新了访问令牌")
    private Boolean hasRefreshedToken;
    @Schema(description = "新的访问令牌")
    private String newAccessToken;
    @Schema(description = "新的过期时间")
    private LocalDateTime newExpireTime;

    @Schema(description = "session信息")
    private AccessTokenSessionInfo sessionInfo;

}
