Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication fix (v3.5.1) #282

Merged
merged 7 commits into from
Feb 22, 2025
Merged

Authentication fix (v3.5.1) #282

merged 7 commits into from
Feb 22, 2025

Conversation

Mathieu2301
Copy link
Owner

This pull request includes several updates to the @mathieuc/tradingview package to enhance functionality and fix issues. The most important changes involve updating the package version, modifying the getUser function to handle redirects, and adjusting a test case for custom chart types.

Version Update:

  • package.json: Updated the package version from 3.5.0 to 3.5.1.

Enhancements to getUser Function:

  • src/miscRequests.js: Added the headers variable to capture response headers and included maxRedirects: 0 in the axios.get call to prevent automatic redirects.
  • src/miscRequests.js: Added a check to recursively call getUser with the new location if a redirect is detected in the response headers.

Test Adjustments:

@Mathieu2301 Mathieu2301 merged commit d60fc3e into main Feb 22, 2025
8 checks passed
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.

1 participant