Closed matheo closed 3 years ago
We don't auth with any scopes beyond the bare minimum & the firebase id token is not for communicating to these API. First make sure that scope is in your signInWithRedirect/Popup request, then either listen to the promise results from the signIn call or use the new .credentials observer, the raw OAuth token with those scopes is included in that object.
I'm being unable to get a Dynamic Link stats via
Version info
Angular: 8.2.14
Firebase: 7.5.0
AngularFire: 5.2.3
How to reproduce these conditions
Steps to set up and reproduce
I'm trying to use the Angular Fire
idToken
and pass it to theHttpClient
via interceptor:The header is correctly sent but I'm getting
401
Debug output
Errors in the Network console
Expected behavior
Looking at the API Authorization documentation, there's the scope
https://www.googleapis.com/auth/firebase
and I assume the AngularFire token is already authorized with it, but it's also curious that a response header of the error response iswww-authenticate: Bearer realm="https://accounts.google.com/"