sync: update MCP client from GameCraftTable
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
/**
|
||||
* 通过本地 OAuth 与 MCP 模拟服务验证完整 PKCE 登录、令牌刷新和秘密隔离流程。
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
import assert from "node:assert/strict";
|
||||
import { createHash, randomUUID } from "node:crypto";
|
||||
import express from "express";
|
||||
@@ -15,7 +21,7 @@ class MemoryTokens implements TokenStore {
|
||||
readonly values = new Map<string, OAuthTokens>();
|
||||
async get(account: string): Promise<OAuthTokens | undefined> { return this.values.get(account); }
|
||||
async set(account: string, tokens: OAuthTokens): Promise<void> { this.values.set(account, tokens); }
|
||||
async delete(account: string): Promise<void> { this.values.delete(account); }
|
||||
async delete(account: string): Promise<boolean> { return this.values.delete(account); }
|
||||
}
|
||||
|
||||
class MemoryDiscovery {
|
||||
|
||||
Reference in New Issue
Block a user