improved type guards
This commit is contained in:
parent
9cf41133fb
commit
ba52a901a9
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue