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

Method action

cli/src/commands/auth/commandAuthLogin.ts:11–17  ·  view source on GitHub ↗
({ auth, eventsManager, options: { json } }: ActionArgs)

Source from the content-addressed store, hash-verified

9 isAuthAction = true;
10
11 async action({ auth, eventsManager, options: { json } }: ActionArgs) {
12 await this.handleAuthViaWeb(auth, json);
13 if (!json) {
14 console.log('Authentication successful');
15 }
16 await eventsManager.startSubscriptions();
17 }
18
19 protected async handleAuthViaWeb(auth: Auth, json: boolean) {
20 return auth.authViaWeb((signInUrl) => {

Callers

nothing calls this directly

Calls 3

handleAuthViaWebMethod · 0.95
startSubscriptionsMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected