local_auth_watchos 0.1.0 copy "local_auth_watchos: ^0.1.0" to clipboard
local_auth_watchos: ^0.1.0 copied to clipboard

watchOS implementation of the local_auth plugin, authenticating the wearer with the device passcode through LocalAuthentication via dart:ffi.

0.1.0 #

First release beyond the generated scaffold.

Breaking

  • pollInterval is gone, replaced by timeout (default 2 minutes) — the bound on how long to wait for the system prompt, not a polling rate.
  • Minimum Dart SDK is now 3.1.0, where NativeCallable.listener landed.

Changed

  • authenticate resolves the moment LAContext replies, instead of polling every 120 ms for up to 1000 iterations.

Fixed

  • An evaluation that resolved before Dart could register for the completion signal would previously have hung. A policy the device cannot evaluate makes LAContext call its reply block synchronously inside evaluatePolicy, so the result is already there; the state is now checked once immediately after starting rather than only on a signal.
  • A timed-out authentication now cancels the native evaluation.
  • Overlapping authenticate() calls no longer clobber each other. The native side holds a single callback pointer, so a second call registered over the first's: the first then waited out its whole timeout and reported failure for an authentication the user had actually completed. Concurrent calls now share one trampoline and all settle together, and the callback is kept until the last of them finishes — so a call that resolves immediately (an unevaluatable policy) can no longer unregister the signal another call is still waiting on.

0.0.1 #

  • Initial watchOS FFI scaffold generated by flutter-watchos plugin port from local_auth_darwin.
0
likes
140
points
160
downloads

Documentation

API reference

Publisher

verified publisherflutterwatch.dev

Weekly Downloads

watchOS implementation of the local_auth plugin, authenticating the wearer with the device passcode through LocalAuthentication via dart:ffi.

Homepage
Repository (GitHub)
View/report issues

Topics

#watchos #ffi #authentication

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, local_auth_platform_interface

More

Packages that depend on local_auth_watchos

Packages that implement local_auth_watchos