diff --git a/packages/@n8n/client-oauth2/src/CodeFlow.ts b/packages/@n8n/client-oauth2/src/CodeFlow.ts index 4a1c97d7b6..f38060d2f4 100644 --- a/packages/@n8n/client-oauth2/src/CodeFlow.ts +++ b/packages/@n8n/client-oauth2/src/CodeFlow.ts @@ -76,8 +76,7 @@ export class CodeFlow { const data = typeof url.search === 'string' ? qs.parse(url.search.substring(1)) : url.search || {}; - // @Cleanup: URL above should never not be a string, so we shouldn't need the fallback that breaks type-safety here - // @ts-expect-error We don't mind this throwing, as that's what we're about to do + // @ts-expect-error getAuthError is not correctly typed const error = getAuthError(data); if (error) throw error;