Skip to content

Commit 16ff6ba

Browse files
committed
fix: add hashable conformance to authenticator states
1 parent fd86328 commit 16ff6ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Authenticator/States/AuthenticatorBaseState.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,14 @@ public class AuthenticatorBaseState: ObservableObject {
250250
}
251251
}
252252

253-
extension AuthenticatorBaseState: Equatable {
253+
extension AuthenticatorBaseState: Equatable, Hashable {
254254
public static func == (lhs: AuthenticatorBaseState, rhs: AuthenticatorBaseState) -> Bool {
255255
lhs === rhs
256256
}
257+
258+
public func hash(into hasher: inout Hasher){
259+
hasher.combine(ObjectIdentifier(self))
260+
}
257261
}
258262

259263
extension AuthenticatorBaseState: AuthenticatorLogging {}

0 commit comments

Comments
 (0)