zero_tap_easy 0.1.1
zero_tap_easy: ^0.1.1 copied to clipboard
Zero-tap sign-in restoration for Android. Silently recreate a signed-in session on a user's new device using Credential Manager Restore Credentials.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 #
Initial release.
Added #
ZeroTapEasy.isSupported()— Android 9 (API 28) and Google Play services 24220000 detection. Returnsfalserather than throwing on every other platform, so the package is safe to call from shared code.ZeroTapEasy.createRestoreKey()— creates a restore key, automatically retrying with cloud backup disabled when the device has no Google backup or no screen lock, and reporting which happened viaRestoreKeyCreation.usedCloudBackup.ZeroTapEasy.getRestoreKey()— returns the WebAuthn assertion JSON, ornullwhen the device holds no key.ZeroTapEasy.clearRestoreKey()— for sign-out, account deletion, and server-side session invalidation.- Typed exceptions (
ZeroTapUnsupportedException,ZeroTapE2eeUnavailableException,ZeroTapRequestJsonException,ZeroTapCancelledException) with stable error codes, replacing barePlatformExceptions. ZeroTapEasyPlatform— swappable for unit testing without a device.- Example app with integration tests and test fixtures for local testing without a relying-party server.
Known limitations #
- Foreground (tier 2) restoration only. Background restoration via
BackupAgent.onRestoreFinished()is not implemented yet. - Android only — by design.