https://github.com/zunda-pixel/devicecheckkit
DeviceCheckKit
https://github.com/zunda-pixel/devicecheckkit
apple swift
Last synced: 3 months ago
JSON representation
DeviceCheckKit
- Host: GitHub
- URL: https://github.com/zunda-pixel/devicecheckkit
- Owner: zunda-pixel
- License: apache-2.0
- Created: 2024-10-11T10:54:23.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T13:31:51.000Z (5 months ago)
- Last Synced: 2025-03-17T09:02:43.520Z (4 months ago)
- Topics: apple, swift
- Language: Swift
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## DeviceCheckKit(Server Side)
[](https://swiftpackageindex.com/zunda-pixel/devicecheckkit)
[](https://swiftpackageindex.com/zunda-pixel/devicecheckkit)```swift
let deviceCheck = DeviceCheck(
httpClient: .urlSession(.shared),
environmet: .development,
teamId: "PSDFSDIZ2",
p8KeyId: "C6KIJDSFU3U",
p8PrivateKey: Data("""
-----BEGIN PRIVATE KEY-----
MIGTAgEA1iWERDFijafjkwdwIBAQQgoM7Jt05epfNvxVEL
idr/RupT
-----END PRIVATE KEY-----
""".utf8)
)func registDeviceToken(deviceToken: Data) {
try await deviceCheck.updateTwoBits(deviceToken: deviceToken)
}
````