mirror of https://github.com/halo-dev/halo
Create AuthToken entity
parent
ad443bd06d
commit
80551dd28b
|
@ -0,0 +1,32 @@
|
||||||
|
package run.halo.app.security.token;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access token.
|
||||||
|
*
|
||||||
|
* @author johnniang
|
||||||
|
* @date 19-4-29
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class AuthToken {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access token.
|
||||||
|
*/
|
||||||
|
@JsonProperty("access_token")
|
||||||
|
private String accessToken;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Expired in. (seconds)
|
||||||
|
*/
|
||||||
|
@JsonProperty("expired_in")
|
||||||
|
private int expiredIn;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Refresh token.
|
||||||
|
*/
|
||||||
|
@JsonProperty("refresh_token")
|
||||||
|
private String refreshToken;
|
||||||
|
}
|
Loading…
Reference in New Issue