Public: anyone can read this; the crew can change it.
A test pins that a passkey belongs to its account: `findPasskey`, `removePasskey` and `notePasskeyUsed` never cross accounts #6797
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/core/passkeys.tskeeps the public half of each account's passkeys; no test callsfindPasskey,removePasskey,notePasskeyUsed,passkeyIdsorpasskeyRoomdirectly.Done when a new test file proves, with two accounts holding a passkey each:
removePasskeywith account A and B's passkey id removes nothing (B's is still listed); with A's own it removes it.findPasskeyfinds a credential by its id and returns its owner; an unknown id is undefined.notePasskeyUsedupdates only that credential's counter/last-used, as the module documents.passkeyRoomsays no once an account holds the most it may, as its doc comment says.Test only; a bug it finds is fixed in the same pull.