From 2c7e5de216c777866f0ce38e47f3ae781545b2b8 Mon Sep 17 00:00:00 2001 From: Anthony Cossins <1451668+anthonyec@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:15:43 +0100 Subject: [PATCH] Increase interval for polling --- plugins/google-search-console/src/auth.ts | 2 +- plugins/google-sheets/src/pages/Authenticate.tsx | 2 +- plugins/notion/src/notion.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/google-search-console/src/auth.ts b/plugins/google-search-console/src/auth.ts index 0a369cea..e62cc3e8 100644 --- a/plugins/google-search-console/src/auth.ts +++ b/plugins/google-search-console/src/auth.ts @@ -38,7 +38,7 @@ export function useGoogleToken() { clearInterval(pollInterval.current); resolve(tokens); } - }, 2500); + }, 10_000); }); }; diff --git a/plugins/google-sheets/src/pages/Authenticate.tsx b/plugins/google-sheets/src/pages/Authenticate.tsx index c7288833..9ea410d9 100644 --- a/plugins/google-sheets/src/pages/Authenticate.tsx +++ b/plugins/google-sheets/src/pages/Authenticate.tsx @@ -27,7 +27,7 @@ export function Authenticate({ onAuthenticated }: AuthenticationProps) { clearInterval(pollInterval.current) resolve(tokens) }), - 2500 + 10_000 )) ) } diff --git a/plugins/notion/src/notion.ts b/plugins/notion/src/notion.ts index e2aff60c..3f74a75a 100644 --- a/plugins/notion/src/notion.ts +++ b/plugins/notion/src/notion.ts @@ -144,7 +144,7 @@ export async function authorize(options: { readKey: string; writeKey: string }) initNotionClient() resolve() } - }, 2500) + }, 10_000) }) }