@swr-login/plugin-passkey
v0.2.4
Published
WebAuthn/Passkey login plugin for swr-login (biometric & security key authentication)
Maintainers
Readme
@swr-login/plugin-passkey
WebAuthn/Passkey login plugin for swr-login (biometric & security key authentication).
Install
npm install @swr-login/plugin-passkeyUsage
import { PasskeyPlugin } from '@swr-login/plugin-passkey';
const plugin = PasskeyPlugin({
rpId: 'yourapp.com',
rpName: 'Your App',
});Then use the useLogin hook:
const { login, isLoading } = useLogin('passkey');
<button onClick={() => login()}>Sign in with Passkey</button>Features
- 🔐 WebAuthn / FIDO2 standard
- 👆 Biometric authentication (Face ID, Touch ID, fingerprint)
- 🔑 Security key support (YubiKey, etc.)
- 🔒 Phishing-resistant — no passwords to steal
- ⚡ Zero page refresh on login
Part of swr-login
See the full project at github.com/tobytovi/swr-login.
