fix(routes): dedupe direct credentials and clarify binding labels

This commit is contained in:
Brucents
2026-03-20 20:41:32 +08:00
parent 088d0455a9
commit 5ee493778f
10 changed files with 331 additions and 30 deletions
+2
View File
@@ -182,6 +182,8 @@ function ensureTokenManagementSchema() {
WHERE
a.api_token IS NOT NULL
AND trim(a.api_token) <> ''
AND a.access_token IS NOT NULL
AND trim(a.access_token) <> ''
AND NOT EXISTS (
SELECT 1 FROM account_tokens AS t
WHERE t.account_id = a.id