Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/webauthn.mts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const getOrigin = (
let origin = _origin;
if (!userAgent) return origin;

const appRe = /^[a-zA-z0-9_.]+/;
const appRe = /^[a-zA-Z0-9_.]+/;
const match = userAgent.match(appRe);
if (match) {
// Check if UserAgent comes from a supported Android app.
Expand Down
6 changes: 3 additions & 3 deletions src/public/scripts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ async function parseAuthData(
// Decode AAGUID
let AAGUID = buffer.slice(0, 16);
AAGUID = Array.from(AAGUID).map(a => (<Number>a).toString(16).padStart(2, '0'));
authData.aaguid = `${AAGUID.splice(0,4).join('')}-${AAGUID.splice(0,2).join('')}-${AAGUID.splice(0,2).join('')}-${AAGUID.splice(0).join('')}`;
authData.aaguid = `${AAGUID.splice(0,4).join('')}-${AAGUID.splice(0,2).join('')}-${AAGUID.splice(0,2).join('')}-${AAGUID.splice(0,2).join('')}-${AAGUID.splice(0).join('')}`;
buffer = buffer.slice(16);

const credIDLenBuf = buffer.slice(0, 2);
Expand Down Expand Up @@ -504,9 +504,9 @@ const listCredentials = async (): Promise<void> => {
<dd>${(new Date(cred.registered)).toLocaleString()}</dd>`:''}
${extensions?.credProps ? html`
<dt>Credential Properties Extension</dt>`:''}
${extensions.credProps?.rk ? html`
${extensions?.credProps?.rk ? html`
<dd>Discoverable Credentials: ${extensions.credProps.rk?'true':'false'}</dd>`:''}
${extensions.credProps?.authenticatorDisplayName ? html`
${extensions?.credProps?.authenticatorDisplayName ? html`
<dd>Authenticator display name: ${extensions.credProps.authenticatorDisplayName}</dd>`:''}
<dt>Public Key</dt>
<dd>${cred.credentialPublicKey}</dd>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
type="url"
label="Picture URL"
pattern="^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.?[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$"
id="picture-url"></mwc-textfieldtype=>
id="picture-url"></mwc-textfield>
</div>
<mwc-button
slot="secondaryAction"
Expand Down