Closed Wintersboy closed 9 months ago
Whenever I've attempted to use Firebase Auth I've found they don't send the refresh token so I always kind of bailed then... If you're getting an access token from them then you SHOULD be getting a valid access token... can you try hitting one of their other "open" APIs directly and see if you get the same error?
Could you point me to one of these "open" API's please?
Wow... I just realized the only thing they have on their developer site is the fantasy api...
https://developer.yahoo.com/api/
With Firebase you are configuring to get the FantasySports scopes, yes?
Lol yup, and its poorly documented.
As far as I'm aware, Firebase itself doesn't manage those permissions, it's the ones set in the Yahoo Developer section. Which yes, I do have set to read.
Does the sign-in work, and it's just in the library that it breaks? I feel like I reached out to Firebase years ago about this issue but I can't find or remember where it ended.
My immediate thought is that something is happening at the Firebase Layer that is handling the actual auth with Yahoo! and it's returning you a different key.
Do you require the Firebase user settings you gain from using auth through them? I've done my best to make the library as easy as possible to login and obtain a token with... you could still leverage a lot of the other Firebase APIs?
Yeah just tested signing in without Firebase and using your libraries method, and it works. My worry was also that Firebase uses its own access token instead of the one provided from Yahoo as well...
I don't NEED Firebase, I just thought it would be a simpler solution for managing auth.
Your library now automatically refreshes the access token correct?
It should, yes!
I'm going to close this down just because I think we can mark it as "resolved"? ... there's a workaround at least...
Hey there!
I was wondering if it's possible to still utilize this library when signing in with Yahoo via Firebase Auth? I'm able to sign in and grab the access token, which I tried to set in the backend like this:
Unfortunately, I'm getting this error:
Is this method even possible? I don't see why it wouldn't.
Cheers!