Skip to content

Commit

Permalink
Make the passkey name easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
rsolomakhin committed Sep 26, 2024
1 parent 8de7e9c commit 50c803d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions pr/create-without-user-activation/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ async function createCredentialInner(residentKey, requireResidentKey) {
// (e.g., the Passkeys UX on Chrome MacOS 108+). This is for display ONLY,
// and has no bearing on SPC's functionality in general. (For example, it
// is NOT shown in the SPC transaction dialog.)
name: 'demo@' + window.location.hostname,
displayName: 'Demo User',
name: 'Demo User on ' + window.location.hostname,
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}

Expand Down
8 changes: 4 additions & 4 deletions pr/spc-cc/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ async function createCredentialCompat() {
rp,
instrument: {
icon: 'https://rsolomakhin.github.io/pr/spc/troy.png',
name: 'demo@' + window.location.hostname,
displayName: 'Demo User',
name: 'Demo User on ' + window.location.hostname,
displayName: '',
},
challenge,
pubKeyCredParams,
Expand All @@ -37,8 +37,8 @@ async function createCredentialCompat() {
rp,
user: {
id: Uint8Array.from(String(Math.random()*999999999), c => c.charCodeAt(0)),
name: 'demo@' + window.location.hostname,
displayName: 'Demo User',
name: 'Demo User on ' + window.location.hostname,
displayName: '',
},
challenge,
pubKeyCredParams,
Expand Down
4 changes: 2 additions & 2 deletions pr/spc-create-in-cross-origin-iframe/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ async function createCredentialInner(residentKey, requireResidentKey) {
// (e.g., the Passkeys UX on Chrome MacOS 108+). This is for display ONLY,
// and has no bearing on SPC's functionality in general. (For example, it
// is NOT shown in the SPC transaction dialog.)
name: 'demo@' + window.location.hostname,
displayName: 'Demo User',
name: 'Demo User on ' + window.location.hostname,
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}

Expand Down
4 changes: 2 additions & 2 deletions pr/spc-create-resident-key/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ async function createCredentialInner(residentKey, requireResidentKey) {
// (e.g., the Passkeys UX on Chrome MacOS 108+). This is for display ONLY,
// and has no bearing on SPC's functionality in general. (For example, it
// is NOT shown in the SPC transaction dialog.)
name: 'demo@' + window.location.hostname,
displayName: 'Demo User',
name: 'Demo User on ' + window.location.hostname,
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}

Expand Down
4 changes: 2 additions & 2 deletions pr/spc_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ async function createCredential(setPaymentExtension, optionalOverrides = {}) {
// (e.g., the Passkeys UX on Chrome MacOS 108+). This is for display ONLY,
// and has no bearing on SPC's functionality in general. (For example, it
// is NOT shown in the SPC transaction dialog.)
name: 'demo@' + window.location.hostname,
displayName: 'Demo User',
name: 'Demo User on ' + window.location.hostname,
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}

Expand Down

0 comments on commit 50c803d

Please sign in to comment.