Skip to content

Commit 366e63e

Browse files
committed
Rename StoredCredential -> Credential
1 parent 097dab0 commit 366e63e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

clients/passkeys-browser/test/helpers/ceremony.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)