feat: implement user account center with authentication, subscription management, and EVM wallet integration.

This commit is contained in:
2569718930@qq.com
2026-03-17 14:32:15 +08:00
parent 217414408c
commit 7510e0a1e0
3 changed files with 19 additions and 6 deletions
@@ -646,6 +646,13 @@ export function AccountCenter() {
} = await client.auth.refreshSession();
const refreshedToken = String(refreshed?.access_token || "").trim();
if (refreshedToken) return refreshedToken;
if (
cachedToken &&
Number.isFinite(expiresAtSec) &&
expiresAtSec > nowSec
) {
return cachedToken;
}
throw new Error(
error?.message
? isEn