Skip to content

Commit

Permalink
Remove the hostname from the passkey name
Browse files Browse the repository at this point in the history
  • Loading branch information
rsolomakhin committed Sep 26, 2024
1 parent 50c803d commit b8ec155
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pr/create-without-user-activation/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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 User on ' + window.location.hostname,
name: 'Demo User',
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}
Expand Down
4 changes: 2 additions & 2 deletions pr/spc-cc/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function createCredentialCompat() {
rp,
instrument: {
icon: 'https://rsolomakhin.github.io/pr/spc/troy.png',
name: 'Demo User on ' + window.location.hostname,
name: 'Demo User',
displayName: '',
},
challenge,
Expand All @@ -37,7 +37,7 @@ async function createCredentialCompat() {
rp,
user: {
id: Uint8Array.from(String(Math.random()*999999999), c => c.charCodeAt(0)),
name: 'Demo User on ' + window.location.hostname,
name: 'Demo User',
displayName: '',
},
challenge,
Expand Down
2 changes: 1 addition & 1 deletion pr/spc-create-in-cross-origin-iframe/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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 User on ' + window.location.hostname,
name: 'Demo User',
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}
Expand Down
2 changes: 1 addition & 1 deletion pr/spc-create-resident-key/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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 User on ' + window.location.hostname,
name: 'Demo User',
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}
Expand Down
2 changes: 1 addition & 1 deletion pr/spc_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ 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 User on ' + window.location.hostname,
name: 'Demo User',
displayName: '',
id: Uint8Array.from(userId, c => c.charCodeAt(0)),
}
Expand Down

0 comments on commit b8ec155

Please sign in to comment.