MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / CommandAuthLogout

Class CommandAuthLogout

cli/src/commands/auth/commandAuthLogout.ts:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { type ActionArgs, type Command } from '../../cli';
2
3export class CommandAuthLogout implements Command {
4 group = 'auth';
5 name = 'logout';
6 help = 'Signs out and clears local credentials and caches.';
7 isAuthAction = true;
8
9 async action({ auth, clearCaches }: ActionArgs) {
10 await auth.logout();
11 await clearCaches();
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected