The official Node.js SDK for QRAuth - secure QR code authentication and verification.
npm install @qrauth/nodeimport { QRAuth } from '@qrauth/node';
const qrauth = new QRAuth({
tenantId: 'your-tenant-id',
apiKey: 'your-api-key'
});
const qrCode = await qrauth.create({
destination: 'user@example.com',
label: 'Login Verification',
location: {
lat: 40.7128,
lng: -74.0060,
radius: 100
}
});
console.log(qrCode.qrImageUrl); // Display to userconst result = await qrauth.verify(token, {
scannerLat: 40.7128,
scannerLng: -74.0060
});
if (result.verified) {
console.log(`Verified by ${result.issuer.name}`);
console.log(`Trust score: ${result.trustScore}`);
}Initialize the QRAuth client.
Create a new QR code for authentication.
Verify a QR code token.
Revoke a QR code token.
List QR codes with optional filtering.
For detailed API documentation, visit docs.qrauth.io