diff --git a/src/notifier.ts b/src/notifier.ts index b3079dd..66c6ccc 100644 --- a/src/notifier.ts +++ b/src/notifier.ts @@ -69,7 +69,6 @@ export async function newNotifier({ cfg, aborter, channels }: NotifierOpts): Pro // Single fetch-and-notify pass in the weekly digest format, then exit. async once(): Promise { - const tokens = await authenticate(cfg); const { events } = await getUpcomingEvents(cfg, tokens); for (const ch of channels) await ch.notifyMany(events); }, @@ -77,7 +76,6 @@ export async function newNotifier({ cfg, aborter, channels }: NotifierOpts): Pro // Single fetch, then send one event (first, or by slug) in the new-event // format, then exit. async onceEvent(slug?: string): Promise { - const tokens = await authenticate(cfg); const { events } = await getUpcomingEvents(cfg, tokens); if (events.length === 0) throw new Error("no upcoming events found");