Repository navigation
Feat/macos biometric - #4
Open
denjell-crabnebula wants to merge 2 commits into
Open
denjell-crabnebula wants to merge 2 commits into
denjell-crabnebula wants to merge 2 commits into
Conversation
The plugin was mobile-only. macOS has no native Tauri plugin to proxy to, so LocalAuthentication is driven in-process and the same two commands are served over the desktop invoke handler — a frontend written against the iOS/Android API works unchanged. - status() pre-flights the policy, so it never presents UI and is safe to call on launch; it reports the biometry type even when unavailable, since "Touch ID present but not enrolled" and "no Touch ID" are different messages. - authenticate() maps allow_device_credential to DeviceOwnerAuthentication (the login password) and honours the cancel/fallback titles. The prompt is answered on an arbitrary queue, so the reply is funnelled through a channel and the context is held until it arrives — dropping it cancels the prompt. - LAError codes are mapped to the string identifiers the JS API documents. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The JS API sends `{ reason, ...options }` — the options are flattened into
the payload rather than nested under an `options` key — so a command taking
`options: AuthOptions` was rejected with "missing required key options".
Take the fields individually and reassemble them. Matching the existing wire
format is the point of the port: it is what lets one frontend target mobile
and macOS without branching.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lets see if this works