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

User Resources return Unauthorized #97

Open
jimdubbs opened this issue Apr 18, 2022 · 1 comment
Open

User Resources return Unauthorized #97

jimdubbs opened this issue Apr 18, 2022 · 1 comment

Comments

@jimdubbs
Copy link

When consuming this package, I am explicitly setting the yahoo access/refresh tokens instead of using the auth callbacks.

All collections for private leagues are working, however when I try to request the current users games/leagues it returns unauthorized. Im confused as to why this would be the case given the access token works for other private resources. I've looked through the service code and cannot see any differences in terms of auth when explicity calling setAccessToken() and setRefreshToken() vs the auth callback/redirect functions. Thoughts?

@whatadewitt
Copy link
Owner

That's strange... Are you able to get a response here using the Tester after logging in? https://yahoo-fantasy-node-docs.vercel.app/resource/user/games

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

No branches or pull requests

2 participants