MCPcopy
hub / github.com/coder/mux / verifyAuthenticatedSession

Method verifyAuthenticatedSession

src/node/services/coderService.ts:583–585  ·  view source on GitHub ↗

* Verify the current Coder CLI session is authenticated. * Forces a fresh whoami check instead of using cached data.

()

Source from the content-addressed store, hash-verified

581 * Forces a fresh whoami check instead of using cached data.
582 */
583 async verifyAuthenticatedSession(): Promise<void> {
584 await this.getWhoamiData({ useCache: false });
585 }
586
587 /**
588 * Clear cached Coder info. Used for testing.

Callers 2

finalizeConfigMethod · 0.80

Calls 1

getWhoamiDataMethod · 0.95

Tested by

no test coverage detected