improved type guards

This commit is contained in:
Martin McKeaveney 2023-09-24 20:47:29 +01:00
parent 9cf41133fb
commit ba52a901a9
1 changed files with 3 additions and 2 deletions

View File

@ -94,8 +94,9 @@ export enum AccountSSOProvider {
MICROSOFT = "microsoft", MICROSOFT = "microsoft",
} }
export enum VerifiableSSOProviders { const verifiableSSOProviders: AccountSSOProvider[] = [AccountSSOProvider.MICROSOFT]
MICROSOFT = "microsoft" export function isVerifiableSSOProvider(provider: AccountSSOProvider): boolean {
return verifiableSSOProviders.includes(provider);
} }
export interface AccountSSO { export interface AccountSSO {