Skip to content

Commit d1ba7d9

Browse files
mandariniBewinxed
andauthored
fix(auth): use direct attestation for registration/authentication (#1764)
Co-authored-by: Bewinxed <[email protected]>
1 parent 4589e34 commit d1ba7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/auth-js/src/lib/webauthn.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,14 @@ export const DEFAULT_CREATION_OPTIONS: Partial<PublicKeyCredentialCreationOption
462462
userVerification: 'preferred',
463463
residentKey: 'discouraged',
464464
},
465-
attestation: 'none',
465+
attestation: 'direct',
466466
}
467467

468468
export const DEFAULT_REQUEST_OPTIONS: Partial<PublicKeyCredentialRequestOptionsFuture> = {
469469
/** set to preferred because older yubikeys don't have PIN/Biometric */
470470
userVerification: 'preferred',
471471
hints: ['security-key'],
472+
attestation: 'direct',
472473
}
473474

474475
function deepMerge<T>(...sources: Partial<T>[]): T {

0 commit comments

Comments
 (0)