New Features:
- **Debug Mode Error Handling:**
- Enhanced error handling in the `discord_callback` view to improve debugging during development.
- When Django's `DEBUG` mode is enabled and a POST request to the `DISCORD_POST_URL` fails, the library will now return the raw error response from the server. This allows developers to see the full debug page, making it easier to identify and diagnose issues.
Bug Fixes:
- None in this release.
Improvements:
- **Improved Developer Experience:**
- Developers can now better understand what went wrong during OAuth2 interactions when developing locally, thanks to the direct display of error pages in debug mode.
Upgrade Notes:
- To take advantage of the improved error handling, ensure that Django's `DEBUG` mode is set to `True` during development.
- This release primarily benefits development environments; production environments will continue to handle errors by returning a JSON response with the error details.
Known Issues:
- CSRF token error's