Welcome to Passkey Accounts™
Proper authentication, easily add account logic to your project!
WebAuthn/FIDO2 passkeys are used for authentication. No passwords. No session cookies. No JWT tokens.
Real-time WebSocket communication for instant auth state updates.
// Receive real-time auth events from Passkey Accounts™ directly to your server (minimal example)
// Node.js with ws package: npm install ws
const WebSocket = require('ws');
const stream = new WebSocket('wss://api.passkeyaccounts.com');
let sequence = 0;
// Establish a constant connection to Passkey Accounts™
stream.on('open', () => {
stream.send(JSON.stringify({
apiKey: 'your_api_key_here'
}));
});
// Receive real-time auth events directly from Passkey Accounts™
stream.on('message', (data) => {
const event = JSON.parse(data.toString());
if (event.sequence > sequence) {
sequence = event.sequence;
if (event.type === 'loggedIn') {
console.log(`✓ User authenticated: ${event.accountID}`);
} else if (event.type === 'loggedOut') {
console.log(`✗ User logged out: ${event.accountID}`);
}
}
});
stream.on('error', (error) => {
console.error('Auth stream error:', error);
});
View your API key by using the demo on the landing page, after logged in you will see your API key.
| Tamper Matrix |
Protected by WSS |
Protected by Sequence |
Protected by HMAC |
| Packet sniffing |
✅ |
❌ |
❌ |
| Packet tampering |
✅ |
❌ |
✅ |
| Replay after reconnect |
❌ |
✅ |
❌ |
| Duplicate events |
❌ |
✅ |
❌ |
| Internal event injection |
❌ |
❌ |
✅ |
No worries, Passkey Accounts™ takes care of all this and more for you.