fix: refine oauth provider guard
This commit is contained in:
@@ -16,7 +16,7 @@ import { suggestOAuthProfileIdForLegacyDefault } from "./repair.js";
|
|||||||
import { ensureAuthProfileStore, saveAuthProfileStore } from "./store.js";
|
import { ensureAuthProfileStore, saveAuthProfileStore } from "./store.js";
|
||||||
|
|
||||||
const OAUTH_PROVIDER_IDS = new Set<OAuthProvider>(
|
const OAUTH_PROVIDER_IDS = new Set<OAuthProvider>(
|
||||||
getOAuthProviders().map((provider) => provider.id as OAuthProvider),
|
getOAuthProviders().map((provider) => provider.id),
|
||||||
);
|
);
|
||||||
|
|
||||||
const isOAuthProvider = (provider: string): provider is OAuthProvider =>
|
const isOAuthProvider = (provider: string): provider is OAuthProvider =>
|
||||||
|
|||||||
Reference in New Issue
Block a user