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