{"repo":"intuit/oauth-jsclient","free":true,"listed":false,"github":"https://github.com/intuit/oauth-jsclient","clone":"git clone https://github.com/intuit/oauth-jsclient.git","description":"Intuit's NodeJS OAuth client provides a set of methods to make it easier to work with OAuth2.0 and Open ID","language":"JavaScript","stars":142,"topics":["node","quickbooks","qbo","intuit","quickbooks-oauth-client","sdk","hacktoberfest","hacktoberfest2020"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"[ ][ss1] OAuth Client for Intuit A Node.js client for Intuit's OAuth 2.0 implementation. Features - OAuth 2.0 authentication flow - Token management and refresh - API request handling with automatic base URL resolution - Comprehensive error handling with custom error types (OAuthError, ValidationError, TokenError) - Full HTTP status code support (400, 401, 403, 404, 429, 500, 502, 503, 504) - QuickBooks Fault object parsing for detailed validation errors - Automatic retry for transient errors with exponential backoff - Structured logging with Winston - Response validation and transformation Installation Usage Error Handling The client provides comprehensive error handling with custom error types and full HTTP status code support: Error Types - OAuthError : Base error class for all OAuth and API errors - Includes error code, description, and Intuit transaction ID - Supports QuickBooks Fault object details - Available for all HTTP status codes (400, 401, 403, 404, 429, 500, 502, 503, 504) - ValidationError : For input validation errors - TokenError : For token-related errors (expired, invalid, etc.) - NetworkError : For network connectivity issues All errors include detailed debugging information and are properly thrown (never returned as successful responses). OAuth2 Error Response Handling When OAuth operations fail (e.g., createToken() , refresh() ), the library now properly surfaces the full error response from QuickBooks: Error Handling Demo Try the interactive error handl","default_branch":null,"files":null,"tree":[],"storefront":"/r/intuit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/intuit/oauth-jsclient/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}