Hawcx OAuth Client SDK for Node.js
Add passwordless authentication to your Node.js backend. Exchange OAuth codes for verified user claims and manage MFA.Installation
Quick Start
OAuth Code Exchange
The most common flow: exchange a Hawcx authorization code for verified user claims.Hawcx Delegation Client (MFA Setup)
For advanced use cases like setting up MFA for users programmatically:Configuration
Environment Variables
For OAuth Code Exchange:Public Key Formats
The SDK accepts public keys in multiple formats: From environment variable (recommended):Error Handling
The SDK provides specific exceptions for different failure scenarios:Integration Examples
Express.js
Fastify
PKCE Support
For enhanced security, especially in native or SPA applications, use PKCE:Next Steps
- View the complete API reference for advanced features and detailed method signatures
- Set up MFA management for your users
- Join our developer community on Slack for support and updates
