Skip to main content

providers/webauthn

default()

default(config): WebAuthnConfig

Add WebAuthn login to your page.

Setup

Configuration

import { Auth } from "@auth/core"
import WebAuthn from "@auth/core/providers/webauthn"

const request = new Request(origin)
const response = await Auth(request, {
providers: [WebAuthn],
})

Resources

tip

The WebAuthn provider comes with a default configuration. To override the defaults for your use case, check out customizing the built-in WebAuthn provider.

Disclaimer

If you think you found a bug in the default configuration, you can open an issue.

Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.

Parameters

config: Partial< WebAuthnConfig >

Returns

WebAuthnConfig