Local Data Lock: Tests
Github
Note: these tests require a passkey-enabled device (TouchID, FaceID, etc); also, the data entered is saved (encrypted!) only in the session-storage on this device, which can be inspected via this browser's developer-tools.
Steps To Run Tests:
- Register a local account (providing a username and display-name for the first passkey on the account).
- Register another local account (providing a different username and display name for the passkey on that second account).
- Select one of the accounts from the drop-down list, and click the 'unlock account' button.
- Type some text into the box, and click the 'save' button.
- Click the 'sign & verify' button, then click the 'Sign' button (after modifying the text, if you prefer), and look for "Verified!" under the signature. Close the dialog.
- Click the 'lock account' button.
- Click the 'detect (and unlock) account' button; you will be prompted to choose one of the passkeys for one of the registered local accounts.
- Click 'add passkey' and provide yet another username and display-name for the additional passkey on the currently selected account.
- Change the 'Passkey Keep-Alive' value to 1 minute, and click the 'set' button.
- Wait at least 1 minute, then enter (or change) some text, and click 'save'; you will be prompted to re-authenticate a registered passkey.
- While logged into both accounts, you will be able to switch between them (using the dropdown and the 'login to account' button), and update the text for each account and click 'save' button... all WITHOUT being re-prompted for any passkeys; once the 1 minute has expired, you'll be prompted for the passkey at the first interaction with each account.
- Click the 'reset account' button; you will be prompted to create a new passkey for the current account (previous passkeys will be discarded).
- Change the passkey timeout from 0 to 5 (seconds).
- Click 'lock account', then 'unlock account'. Wait for at least 5 seconds, and see the authentication dialog be canceled/closed and an error message displayed.
When complete with testing:
- Click the 'reset (remove all accounts)' button.
- Use the device's system management settings to remove all the passkeys registered during testing.
(0 to disable)