Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hansemannn/titanium-passkeys
Use the iOS 16+ PassKeys APIs in Titanium!
https://github.com/hansemannn/titanium-passkeys
ios16 javascript module passkeys tidev titanium xcode14
Last synced: 24 days ago
JSON representation
Use the iOS 16+ PassKeys APIs in Titanium!
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-passkeys
- Owner: hansemannn
- License: mit
- Created: 2022-06-24T21:59:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T22:01:34.000Z (over 2 years ago)
- Last Synced: 2024-07-30T19:49:11.574Z (5 months ago)
- Topics: ios16, javascript, module, passkeys, tidev, titanium, xcode14
- Language: Swift
- Homepage:
- Size: 68.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Titanium iOS 16+ PassKeys
Use the iOS 16+ PassKeys APIs in Titanium!
## Requirements
- [x] Xcode 14+ and iOS 16+
- [x] A server to generate the challenge used to authenticate
- [x] Read [this document](https://developer.apple.com/documentation/authenticationservices/public-private_key_authentication/supporting_passkeys) to understand when and how to use pass keys along with your other tech stack
- [x] Proper [AASA setup](https://blog.branch.io/what-is-an-aasa-apple-app-site-association-file) for your domain, e.g.:
```json
{
"webcredentials": {
"apps": [ "A1B2C3D4E5.com.example.app" ]
}
}
```## Example
```js
import PassKeys from 'ti.passkeys';PassKeys.addEventListener('complete', event => {
console.warn(event);if (event.type === 'registration') {
// handle registration
} else {
// handle assertion
}
});PassKeys.addEventListener('error', event => {
console.error(event.error);
});PassKeys.performAutoFillAssistedRequests({
challenge: 'YOUR_SERVER_CHALLENGE',
relyingPartyIdentifier: 'example.com' // should match your ASSA setup
});
```## Author
Hans Knöchel
## License
MIT