@octane-xplat/biometrics 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +30 -0
  2. package/package.json +10 -10
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # `@octane-xplat/biometrics`
2
+
3
+ Local biometric verification — Face ID / Touch ID / fingerprint or device
4
+ credential — behind one capability object. iOS and Android run
5
+ `@nativescript/biometrics`; web and the macOS AppKit host report
6
+ `supported: false` (WebAuthn is an authentication ceremony, not a
7
+ local-presence check, and the dev host has no LocalAuthentication bridge).
8
+
9
+ ```sh
10
+ pnpm add @octane-xplat/biometrics
11
+ ```
12
+
13
+ ```ts
14
+ import { biometrics } from '@octane-xplat/biometrics'
15
+
16
+ if ((await biometrics.ensure()) === 'granted') {
17
+ const ok = await biometrics.impl!.verify('Unlock your saved trips')
18
+ }
19
+ ```
20
+
21
+ The shared capability contract: `supported` reports whether an
22
+ implementation exists on this target — branch on it rather than catching —
23
+ `ensure()` resolves `'granted' | 'denied' | 'unsupported'`, and `impl` is
24
+ the service once usable. `verify(reason)` resolves `false` for a declined
25
+ or failed prompt rather than throwing.
26
+
27
+ Guide: [Using device features](../../docs/platform-services.md);
28
+ per-target availability: [platform notes](../../docs/platform-notes.md).
29
+ Exercised by the harness `Services` screen
30
+ ([`packages/app/src/Services.tsrx`](../app/src/Services.tsrx)).
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@octane-xplat/biometrics",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Biometric verification (FaceID/TouchID/fingerprint) for Octane xplat — matching web + NativeScript implementations",
5
5
  "keywords": [
6
- "octane",
7
- "xplat",
8
- "cross-platform",
6
+ "android",
9
7
  "biometrics",
8
+ "cross-platform",
10
9
  "faceid",
11
- "touchid",
12
10
  "fingerprint",
13
- "nativescript",
14
11
  "ios",
15
- "android",
16
- "web"
12
+ "nativescript",
13
+ "octane",
14
+ "touchid",
15
+ "web",
16
+ "xplat"
17
17
  ],
18
- "license": "MIT",
19
18
  "homepage": "https://github.com/octane-xplat/octane-xplat/tree/main/packages/biometrics",
19
+ "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/octane-xplat/octane-xplat.git",
22
+ "url": "https://github.com/octane-xplat/octane-xplat",
23
23
  "directory": "packages/biometrics"
24
24
  },
25
25
  "files": [