@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.
Documentation · GitHub
Part of nauth-toolkit. Requires @nauth-toolkit/core.
Install
npm install @nauth-toolkit/mfa-passkey
Enable 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
See the full package list in the core README.
MIT licensed. See LICENSE.