Files
aliasvault/apps/mobile-app/ios/VaultModels/AuthMethods.swift
2025-04-30 19:03:18 +02:00

16 lines
395 B
Swift

import Foundation
public struct AuthMethods: OptionSet {
public let rawValue: Int
public init(rawValue: Int) {
self.rawValue = rawValue
}
public static let faceID = AuthMethods(rawValue: 1 << 0)
public static let password = AuthMethods(rawValue: 1 << 1)
public static let all: AuthMethods = [.faceID, .password]
public static let none: AuthMethods = []
}