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",
}
export enum VerifiableSSOProviders {
MICROSOFT = "microsoft"
const verifiableSSOProviders: AccountSSOProvider[] = [AccountSSOProvider.MICROSOFT]
export function isVerifiableSSOProvider(provider: AccountSSOProvider): boolean {
return verifiableSSOProviders.includes(provider);
}
export interface AccountSSO {