Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zunda-pixel/devicecheckkit
DeviceCheckKit
https://github.com/zunda-pixel/devicecheckkit
apple swift
Last synced: 21 days 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T10:55:26.000Z (about 2 months ago)
- Last Synced: 2024-12-02T12:18:37.105Z (about 1 month ago)
- Topics: apple, swift
- Language: Swift
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## DeviceCheckKit(Server Side)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fzunda-pixel%2Fdevicecheckkit%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/zunda-pixel/devicecheckkit)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fzunda-pixel%2Fdevicecheckkit%2Fbadge%3Ftype%3Dplatforms)](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)
}
````