MCPcopy Index your code
hub / github.com/Waishnav/devspace / getClient

Method getClient

src/oauth-store.ts:48–54  ·  view source on GitHub ↗
(clientId: string)

Source from the content-addressed store, hash-verified

46 }
47
48 getClient(clientId: string): OAuthClientInformationFull | undefined {
49 const row = this.database.sqlite
50 .prepare("select client_json from oauth_clients where client_id = ?")
51 .get(clientId) as { client_json: string } | undefined;
52
53 return row ? (JSON.parse(row.client_json) as OAuthClientInformationFull) : undefined;
54 }
55
56 registerClient(
57 client: Omit<OAuthClientInformationFull, "client_id" | "client_id_issued_at">,

Callers 2

getClientMethod · 0.45

Calls

no outgoing calls

Tested by 1