({ auth, eventsManager, options: { json } }: ActionArgs)
| 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) => { |
nothing calls this directly
no test coverage detected