mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 06:04:22 +08:00
merge: resolve auth API endpoint conflicts
- 保留 token 刷新端点为 /api/oauth/refresh - 修正云空间用量端点为 /api/cloud/storage/usage(与前端一致) - 保留 Deep Link 回调 URL secscore://oauth
This commit is contained in:
@@ -719,7 +719,7 @@ pub async fn oauth_get_storage_usage(
|
||||
let client = &state_guard.http_client;
|
||||
|
||||
let response = client
|
||||
.get("https://appwrite.sectl.cn/api/cloud-storage/usage")
|
||||
.get("https://appwrite.sectl.cn/api/cloud/storage/usage")
|
||||
.query(&[("client_id", platform_id), ("user_id", user_id)])
|
||||
.header("Authorization", format!("Bearer {}", access_token))
|
||||
.send()
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
export const SECTL_CONFIG = {
|
||||
baseUrl: "https://appwrite.sectl.cn",
|
||||
authUrl: "https://sectl.cn",
|
||||
platformId: "",
|
||||
platformId: "", // 需要在设置中配置
|
||||
callbackUrl: "secscore://oauth",
|
||||
callbackPort: 5173,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user