MCPcopy Create free account
hub / github.com/chieapp/chie / getCredentialsByType

Method getCredentialsByType

src/controller/api-manager.ts:125–129  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

123 }
124
125 getCredentialsByType(type: string): APICredential[] {
126 return Object.keys(this.#credentials)
127 .filter(k => this.#credentials[k].type == type)
128 .map(k => this.#credentials[k]);
129 }
130
131 getCredentialSelections(): Selection[] {
132 return Object.values(this.#credentials).map(v => ({name: v.name, value: v}));

Calls

no outgoing calls

Tested by

no test coverage detected