MCPcopy
hub / github.com/upstash/context7 / logoutCommand

Function logoutCommand

packages/cli/src/commands/auth.ts:210–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208}
209
210function logoutCommand(): void {
211 trackEvent("command", { name: "logout" });
212 if (clearTokens()) {
213 console.log(pc.green("Logged out successfully."));
214 } else {
215 console.log(pc.yellow("You are not logged in."));
216 }
217}
218
219async function whoamiCommand(): Promise<void> {
220 trackEvent("command", { name: "whoami" });

Callers 1

registerAuthCommandsFunction · 0.85

Calls 2

trackEventFunction · 0.85
clearTokensFunction · 0.85

Tested by

no test coverage detected