feat: 添加刷新令牌支持
* 服务端: 添加对应的接口, 对原有令牌系统稍有修改, 添加了令牌类型 * 客户端: 自动刷新访问令牌, 登录时顺带获取刷新令牌
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import TokenType from "./TokenType.ts"
|
||||
|
||||
export default interface Token {
|
||||
author: string
|
||||
auth: string
|
||||
made_time: number
|
||||
expired_time: number
|
||||
device_id: string
|
||||
type: TokenType
|
||||
}
|
||||
Reference in New Issue
Block a user