Installation
bun add nitro-local-auth
bun run nitro-ui prepare
The NitroUI CLI finds the package through its nitro.json, generates its bindings with the app's Nitrogen, links its Swift package into the iOS build and its Kotlin sources into the Android runtime library. There is no manual linking step.
Peer dependencies
| Package | Version |
|---|---|
nitro-ui-renderer | >=0.3.0 |
nitro-core | 1.0.0-alpha.nightly.138.g43e09c161101 (dependency, exact) |
Version overrides
The package depends on nitro-core 1.0.0-alpha.nightly.138.g43e09c161101 exactly. The NitroUI CLI requires every module to resolve the same nitro-core as the SDK, so an app whose NitroUI release pins another nightly must override both packages in its package.json:
"overrides": {
"nitro-core": "1.0.0-alpha.nightly.138.g43e09c161101",
"nitrogen": "1.0.0-alpha.nightly.138.g43e09c161101"
}
:::warning NitroUI 0.3.0 pins nightly .137
NitroUI 0.3.0 pins nitro-core .137. Without the overrides above, nitro-ui prepare sees two nitro-core versions and the app does not build.
:::
Platform setup
Both platforms need one declaration in the app before the prompt works:
- iOS setup:
NSFaceIDUsageDescriptioninInfo.plist. - Android setup: the
USE_BIOMETRICpermission inAndroidManifest.xml.