Skip to content

Commit 98395c5

Browse files
committed
Make Base64 types equatable
1 parent d734ed9 commit 98395c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/WebAuthn/Helpers/Base64Utilities.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Foundation
1616
import Logging
1717

1818
/// Container for base64 encoded data
19-
public struct EncodedBase64: ExpressibleByStringLiteral, Codable, Hashable {
19+
public struct EncodedBase64: ExpressibleByStringLiteral, Codable, Hashable, Equatable {
2020
private let base64: String
2121

2222
public init(_ string: String) {
@@ -63,7 +63,7 @@ public struct EncodedBase64: ExpressibleByStringLiteral, Codable, Hashable {
6363
}
6464

6565
/// Container for URL encoded base64 data
66-
public struct URLEncodedBase64: ExpressibleByStringLiteral, Codable, Hashable {
66+
public struct URLEncodedBase64: ExpressibleByStringLiteral, Codable, Hashable, Equatable {
6767
let base64: String
6868

6969
public init(_ string: String) {

0 commit comments

Comments
 (0)