Package Exports
- @nauth-toolkit/mfa-passkey
- @nauth-toolkit/mfa-passkey/nestjs
- @nauth-toolkit/mfa-passkey/openapi
Readme
@nauth-toolkit/mfa-passkey
Passkey and WebAuthn MFA provider for nauth-toolkit.
Adds FIDO2 passkey support — Face ID, Touch ID, Windows Hello, YubiKey, and other platform/roaming authenticators. Handles registration ceremonies, authentication assertions, and credential management.
Part of nauth-toolkit. Requires
@nauth-toolkit/core.
Install
npm install @nauth-toolkit/mfa-passkeyEnable in your auth config:
import { MFAMethod } from '@nauth-toolkit/core';
const authConfig = {
mfa: {
enabled: true,
allowedMethods: [MFAMethod.PASSKEY],
},
};NestJS — import the module and it auto-registers:
import { PasskeyMFAModule } from '@nauth-toolkit/mfa-passkey/nestjs';
@Module({
imports: [NAuthModule.forRoot(authConfig), PasskeyMFAModule],
})
export class AuthModule {}Related packages
| Package | Purpose |
|---|---|
@nauth-toolkit/mfa-totp |
TOTP authenticator apps |
@nauth-toolkit/mfa-sms |
SMS verification codes |
@nauth-toolkit/mfa-email |
Email verification codes |
See the full package list in the core README.
Free to use. See license.