MCPcopy
hub / github.com/codeaashu/claude-code / clearIdpClientSecret

Function clearIdpClientSecret

src/services/mcp/xaaIdpLogin.ts:187–194  ·  view source on GitHub ↗
(idpIssuer: string)

Source from the content-addressed store, hash-verified

185 * Used by `claude mcp xaa clear`.
186 */
187export function clearIdpClientSecret(idpIssuer: string): void {
188 const storage = getSecureStorage()
189 const existing = storage.read()
190 const key = issuerKey(idpIssuer)
191 if (!existing?.mcpXaaIdpConfig?.[key]) return
192 delete existing.mcpXaaIdpConfig[key]
193 storage.update(existing)
194}
195
196// OIDC Discovery §4.1 says `{issuer}/.well-known/openid-configuration` — path
197// APPEND, not replace. `new URL('/.well-known/...', issuer)` with a leading

Callers 1

registerMcpXaaIdpCommandFunction · 0.85

Calls 4

getSecureStorageFunction · 0.85
issuerKeyFunction · 0.85
readMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected