File tree Expand file tree Collapse file tree
clients/passkeys-browser/test/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ interface PendingEntry {
1818 rpId : string ;
1919}
2020
21- // StoredCredential is what finishRegistration persists so a later authentication ceremony can
21+ // Credential is what finishRegistration persists so a later authentication ceremony can
2222// verify an assertion against it. Keyed by the base64url-encoded credential id.
23- interface StoredCredential {
23+ interface Credential {
2424 publicKey : CryptoKey ;
2525 userHandle : string ;
2626 username : string ;
@@ -45,14 +45,14 @@ export class CeremonyService {
4545 // credentials holds every credential that has completed registration, keyed by the
4646 // base64url-encoded credential id. This is what finishAuthentication verifies assertions
4747 // against — without it there would be no public key to check a signature with.
48- private readonly credentials : Map < string , StoredCredential > ;
48+ private readonly credentials : Map < string , Credential > ;
4949
5050 private readonly rpId : string ;
5151 private readonly allowedUsernames : string [ ] ;
5252
5353 constructor ( rpId : string , ...allowedUsernames : string [ ] ) {
5454 this . pendingRegistrations = new Map < string , PendingEntry > ( ) ;
55- this . credentials = new Map < string , StoredCredential > ( ) ;
55+ this . credentials = new Map < string , Credential > ( ) ;
5656 this . rpId = rpId ;
5757 this . allowedUsernames = allowedUsernames ?? [ ] ;
5858 }
You can’t perform that action at this time.
0 commit comments