Skip to content

Commit e2052f2

Browse files
committed
fix: Build error caused when Foundation is not present
By default when building via Xcode Foundation does not need to be imported
1 parent 36f4ee0 commit e2052f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/JWT/CompactJSONEncoder.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import Foundation
2+
3+
14
class CompactJSONEncoder: JSONEncoder {
25
override func encode<T : Encodable>(_ value: T) throws -> Data {
36
return try encodeString(value).data(using: .ascii) ?? Data()

0 commit comments

Comments
 (0)