Skip to content

Commit 76033f4

Browse files
Merge pull request #2 from passageidentity/PSG-3965-passkey-readiness
Added README
2 parents f2ef952 + c10abbb commit 76033f4

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<img src="https://storage.googleapis.com/passage-docs/passage-logo-gradient.svg" alt="Passage logo" style="width:250px;"/>
2+
3+
## About
4+
5+
This package contains the code required to evaluate the passkey readiness of a user's iOS device. Results gathered by this package can be viewed at the [Passkey Readiness Tool page](https://console-uat.passage.dev/passkey-readiness) in Passage Console.
6+
7+
## Usage
8+
9+
### Installation
10+
11+
You can import Authentikit via the Swift Package Manager. Simply search SPM for this url:
12+
```
13+
https://github.com/passageidentity/passage-authentikit-ios
14+
```
15+
16+
Or you can import it using CocoaPods by add this pod to your app's Podfile:
17+
```
18+
pod 'PassageAuthentikit'
19+
```
20+
21+
### Example
22+
And you can use it like this:
23+
```swift
24+
import Authentikit
25+
26+
let authentikit = Authentikit(clientSideKey: clientSideKey)
27+
try await authentikit.passkey.evaluateReadiness()
28+
```
29+
<br>

Sources/Authentikit/Passkey.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public class Passkey {
1717
let device = await UIDevice.current
1818
let bundleId = Bundle.main.bundleIdentifier ?? ""
1919
let requestHeaders: [String : String] = await [
20-
"app_identifier": bundleId,
21-
"device_os": device.systemName,
22-
"device_os_version": device.systemVersion,
23-
"origin": bundleId,
20+
"App-Identifier": bundleId,
21+
"Device-OS": device.systemName,
22+
"Device-OS-Version": device.systemVersion,
23+
"Origin": bundleId,
2424
"Content-Type": "application/json",
2525
"Passage-Version": "Passage Authentikit iOS \(Authentikit.PACKAGE_VERSION)",
2626
"X-API-KEY": clientSideKey,

0 commit comments

Comments
 (0)