yahoo-fantasy-sports-api icon indicating copy to clipboard operation
yahoo-fantasy-sports-api copied to clipboard

User Resources return Unauthorized

Open jimdubbs opened this issue 2 years ago • 1 comments

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?

jimdubbs avatar Apr 18 '22 16:04 jimdubbs

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

whatadewitt avatar Apr 20 '22 18:04 whatadewitt