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

Method markStepUpPending

src/services/mcp/auth.ts:1468–1471  ·  view source on GitHub ↗

* Called by the fetch wrapper when a 403 insufficient_scope response is * detected. Setting this causes tokens() to omit refresh_token, forcing * the SDK's authInternal to skip its (useless) refresh path and fall through * to startAuthorization → redirectToAuthorization → step-up persistenc

(scope: string)

Source from the content-addressed store, hash-verified

1466 * return the same-scoped token and the retry would 403 again.
1467 */
1468 markStepUpPending(scope: string): void {
1469 this._pendingStepUpScope = scope
1470 logMCPDebug(this.serverName, `Marked step-up pending: ${scope}`)
1471 }
1472
1473 async state(): Promise<string> {
1474 // Generate state if not already generated for this instance

Callers 1

Calls 1

logMCPDebugFunction · 0.85

Tested by

no test coverage detected