Skip to content

Conversation

mandarini
Copy link
Contributor

Moved from: supabase/auth-js#1126
Author: @Bewinxed

What kind of change does this PR introduce?

Fix/Enhancement

What is the current behavior?

The WebAuthn implementation currently sets attestation: 'none' in the default creation options, which means the authenticator doesn't provide any attestation statement during registration.
As per Yubico's Recommendation, this should be set to direct to allow us access to the make/model/version of the security keys being used. More Info

  • Whether the authenticator is genuine (not a software emulator)
  • The authenticator's make/model/manufacturer
  • Whether it meets security requirements for the application

What is the new behavior?

Changed attestation from 'none' to 'direct' in DEFAULT_CREATION_OPTIONS.

Additional context

With attestation: 'direct', the server can Verify authenticator make/model and possibly reject unknown models using the AAGUID of the security key.

@mandarini mandarini requested review from a team as code owners October 10, 2025 14:26
@mandarini mandarini added the auth-js Related to the auth-js library. label Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth-js Related to the auth-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants