whatadewitt / yahoo-fantasy-sports-api

NodeJS wrapper for the Yahoo! Fantasy Sports API
https://yahoo-fantasy-node-docs.vercel.app/
MIT License
192 stars 52 forks source link

User Resources return Unauthorized #97

Open jimdubbs opened 2 years ago

jimdubbs commented 2 years ago

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 commented 2 years ago

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