diff --git a/Sources/Authenticator/States/AuthenticatorBaseState.swift b/Sources/Authenticator/States/AuthenticatorBaseState.swift index 91996fe..bece301 100644 --- a/Sources/Authenticator/States/AuthenticatorBaseState.swift +++ b/Sources/Authenticator/States/AuthenticatorBaseState.swift @@ -250,10 +250,14 @@ public class AuthenticatorBaseState: ObservableObject { } } -extension AuthenticatorBaseState: Equatable { +extension AuthenticatorBaseState: Equatable, Hashable { public static func == (lhs: AuthenticatorBaseState, rhs: AuthenticatorBaseState) -> Bool { lhs === rhs } + + public func hash(into hasher: inout Hasher){ + hasher.combine(ObjectIdentifier(self)) + } } extension AuthenticatorBaseState: AuthenticatorLogging {}