Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / helpers / recovery.ts
blobe284b217993027183387ae9132d7ad1d45de51cb
1 import type { UserModel } from '../interfaces';
2 import { getIsSSOVPNOnlyAccount } from '../keys';
4 export const getIsRecoveryAvailable = (user: UserModel) => {
5     const isSSOUser = getIsSSOVPNOnlyAccount(user);
7     return user.isPrivate && !isSSOUser;
8 };