fix: format issues and lint error in oauth.ts

This commit is contained in:
Mario Zechner
2026-02-02 01:59:42 +01:00
parent cf1d3f7a7c
commit 4347d2468c
5 changed files with 8 additions and 7 deletions

View File

@@ -19,8 +19,10 @@ const OAUTH_PROVIDER_IDS = new Set<OAuthProvider>(
getOAuthProviders().map((provider) => provider.id),
);
const isOAuthProvider = (provider: string): provider is OAuthProvider =>
OAUTH_PROVIDER_IDS.has(provider as OAuthProvider);
function isOAuthProvider(provider: string): provider is OAuthProvider {
// biome-ignore lint/suspicious/noExplicitAny: type guard needs runtime check
return OAUTH_PROVIDER_IDS.has(provider as any);
}
const resolveOAuthProvider = (provider: string): OAuthProvider | null =>
isOAuthProvider(provider) ? provider : null;