添加 react-router, 使 CallackError 获得更多成员, 导出, (WIP) 图片查看器修改, 修复遗忘的 data.apply()

This commit is contained in:
CrescentLeaf
2025-12-06 15:45:43 +08:00
parent 29ea0c5b84
commit b85b6833b6
10 changed files with 209 additions and 128 deletions

View File

@@ -2,7 +2,9 @@ import data from "./Data.ts";
import getClient from "./getClient.ts"
/**
* 客户端上线
* 尝试进行验证
*
* 成功后自动保存到本地
*
* 优先级: 账号密码 > 提供刷新令牌 > 储存的刷新令牌
*
@@ -23,4 +25,5 @@ export default async function performAuth(args: {
}
data.refresh_token = getClient().getCachedRefreshToken()
data.access_token = getClient().getCachedAccessToken()
data.apply()
}