Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The TurnkeySDK is built to support macOS, iOS, tvOS, watchOS, and visionOS, maki
To integrate the TurnkeySDK into your Swift project, you need to add it as a dependency in your Package.swift file:

```swift
.package(url: "https://github.com/tkhq/swift-sdk", from: "1.2.0")
.package(url: "https://github.com/tkhq/swift-sdk", from: "1.2.1")
```

## Usage
Expand Down
8 changes: 6 additions & 2 deletions Sources/Shared/Stamper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@ public class Stamper {
}
}

guard let challenge = payload.compactMap { String(format: "%02x", $0) }.joined().data(using: .utf8) else {
guard
let challenge = payload.compactMap({ String(format: "%02x", $0) }).joined().data(
using: .utf8)
else {
continuation.resume(throwing: StampError.assertionFailed)
return
}

self.passkeyManager?.assertPasskey(challenge: challenge)
}
}
Expand Down