Sections
Documentation › Use
Biometric sign-in and downloads
Usage
- Install the test APK available in Settings → Noyau apps or in the Shared files. Sign in to the HTTPS server once with the profile password (or the authorized passkey).
- In Settings → Face ID / fingerprint sign-in, choose Enable, confirm the password, then accept the system check on the phone. The offer also appears right after the first password sign-in, and when you switch profiles.
- On later launches and when you return to the app, the system automatically offers Face ID / Touch ID on iPhone, or the strong biometrics available on Android (notably the fingerprint on compatible Samsung devices).
- Cancelling leaves the app locked, without a loop of prompts. You can try again, or disable this pairing and go back to the password.
Biometrics must already be set up in the phone's settings. The webcam is not used. In the browser and the PWA, the standard passkey mechanism takes over (next section). Weak-class Android face unlock is not accepted. A phone PIN does not silently replace biometrics: the fallback is the Noyau password.
Enabling it is opt-in, per HTTPS server and profile. The password is never stored by this mechanism. Fingerprints, faces and biometric templates never leave the system's biometric services and are never sent to the Noyau server.
Labels shown depending on the device: Face ID, Touch ID or Optic ID on iPhone/iPad; on Android, Fingerprint, Fingerprint / face, Face unlock or Iris depending on the sensors present.
Passkeys (browser and PWA)
In Safari, the iPhone PWA, Chrome on Android or a computer, Noyau uses WebAuthn
passkeys: Face ID / Touch ID on iPhone and Mac, fingerprint on Android,
Windows Hello on PC. Library: @simplewebauthn/server and /browser.
- After a password sign-in, Noyau offers Turn on Face ID / Touch ID (or the device's label). "Later" no longer offers it again on this device.
- Otherwise: Settings → Face ID / Touch ID sign-in → Add this device. If the password sign-in is more than 15 minutes old, the password is requested again, then Continue with … opens the system check.
- The sign-in screen shows Sign in with …: one gesture, with no password and no profile choice (the system offers the domain's passkeys). Switching profiles offers the same button if the target profile has a passkey.
- Each passkey carries a device name, its date added and date last used, and can be revoked from Settings.
Requirements: HTTPS and a domain name (WebAuthn rejects IP addresses); the RP id is the served host name, so a passkey created on one domain does not work on another. In the native app, this mechanism is hidden: native biometrics apply.
Protections:
- The server stores only the public key, the counter, the transports and
metadata (
passkeys.json, mode 0600); no private key or secret. userVerification: requiredwhen adding and when signing in; origin and RP id checked; signature counter checked (a counter that goes backwards is rejected).- Random single-use challenges, valid for 5 minutes, tied to their purpose (adding or signing in) and to the profile.
- Same session as native biometrics:
HttpOnly; Secure; SameSite=Strictcookie lasting 2 h, tied to the passkey; revoking the passkey ends its sessions. - A password change or deleting the profile invalidates its passkeys.
- Adding a passkey requires a recent password sign-in (not a session opened by passkey or biometrics) or the password; 10 passkeys at most per profile.
- Attempts limited per address (5 failures / 15 min) for sign-in and adding.
- Tests:
test/passkey-auth.test.js(P-256 software authenticator: adding, sign-in, counter, revoked passkey, wrong origin, wrong RP id, challenges, limiting) ande2e/passkey-login.spec.mjs(Chromium virtual authenticator).
Protections
- Android: random token encrypted with AES-GCM; non-exportable Android Keystore key
requiring strong authentication on every use, unlocked with the
CryptoObjectofBiometricPrompt. Adding a fingerprint invalidates the key on supported versions. No secret in plaintext preferences. - iOS: token in the Keychain with
biometryCurrentSetandkSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, with no iCloud sync and no transfer to another device. Changing the enrolled biometrics invalidates access to the secret.NSFaceIDUsageDescriptionand the Capacitor bridge are declared. - Server: SHA-256 fingerprint of the token only, maximum lifetime of 30 days, ten active pairings per profile, password confirmation on enabling, attempt limiting and per-device revocation. A password change, a server key change or deleting the profile invalidates the pairings.
- After the system check, a two-hour Noyau HTTPS session is created, with an HttpOnly, Secure and SameSite=Strict cookie. It is tied to the device; revocation also blocks its next authenticated HTTP requests. Classic sign-in cookies remain compatible. No token is ever placed in a URL.
- Local metadata (enabled state, name, expiry and identifier) contains neither password nor token. The secret only comes back into JavaScript memory after the native check, to establish the session, and never into localStorage.
- The interface is hidden before cold-start authentication and when the app receives the signal that it is going to the background. A system thumbnail captured before this signal, if any, must be checked on each device. This is not protection against a rooted/jailbroken phone, a compromised app or extraction of local data. The APK is a debug test build, not a hardened production release.
Without network/VPN, the biometric check can only open data already in the cache, until the pairing expires. No server access is created without a valid response. An HTTP refusal (401/403/429/500) never becomes an offline bypass. A remote revocation cannot be known during a network outage; it will be checked at the next connection.
Disabling the local pairing or choosing the password fallback deletes its secret and requires a new classic sign-in. Signing out tries to revoke the Groceries/push capabilities before the biometric token, then clears the local session. If the server cannot be reached, also revoke the device from another session when possible. Connections that are already open are not proof that all transports are revoked instantly.