MCPcopy Index your code
hub / github.com/callstack/agent-device / removeCliSession

Function removeCliSession

src/cli/auth-session.ts:309–314  ·  view source on GitHub ↗
(options: { stateDir: string })

Source from the content-addressed store, hash-verified

307}
308
309export function removeCliSession(options: { stateDir: string }): boolean {
310 const filePath = resolveCliSessionPath(options.stateDir);
311 if (!fs.existsSync(filePath)) return false;
312 fs.rmSync(filePath, { force: true });
313 return true;
314}
315
316export function resolveCliSessionPath(stateDir: string): string {
317 return path.join(stateDir, 'auth', 'cli-session.json');

Callers 2

authCommandFunction · 0.90

Calls 1

resolveCliSessionPathFunction · 0.85

Tested by

no test coverage detected