Skip to content

Commit 2e3d0bb

Browse files
committed
fix: use @preconcurrency import for Swift 6.2 Crypto compatibility
- Replace @unchecked Sendable with @preconcurrency import Crypto - Cleaner approach that doesn't require internal workarounds - @preconcurrency tells compiler Crypto module hasn't adopted strict concurrency yet - Will automatically work when swift-crypto adds proper Sendable conformance - All 35 tests passing
1 parent d91fca8 commit 2e3d0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JWT/RFC 7519+Crypto.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99
import RFC_7519
10-
import Crypto
10+
@preconcurrency import Crypto
1111

1212
// MARK: - JWT Creation with swift-crypto
1313

0 commit comments

Comments
 (0)