Skip to content

Conversation

@rajeshgupta723
Copy link
Collaborator

No description provided.

Added comprehensive FAQ section with:
- Documentation of the 4.2.1 Authorization header bug and fix
- Common questions about logging, token expiration, and retry behavior
- Examples for relative vs absolute URLs in makeApiCall
- Instructions for customizing retry configuration

Helps users quickly find solutions to common issues.
… methods

- Fix issue where OAuth error responses (e.g., invalid_grant) were not properly surfaced
- Added error response processing in getTokenRequest() to populate authResponse with error details
- Error objects now contain: error code, error_description, intuit_tid, and full response body
- Added 2 comprehensive tests for createToken and refresh error handling
- Added interactive error handling demo script (test/error-handling-demo.js)
- Enhanced README with OAuth2 error handling documentation, common errors table, and debugging tips

This fix enables developers to:
- Access detailed OAuth2 error information
- Handle specific error types programmatically (invalid_grant, invalid_client, etc.)
- Debug issues using transaction IDs
- Provide better user experience with meaningful error messages

100% backward compatible - no breaking changes
Replace actual client ID and secret with placeholders for security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants