You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and afterwards I can call user.getIdToken() and it shows what looks like my auth id. But every way I try to check seems to indicate that the auth header isn't in the request to the cloud function.
I wrote the cloud function in python. It looks like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggling with getting the user id token included in the call to httpsCallable(). I call it like this from flutter:
This person was asking I think a similar question but for them they said the answer was Authorization was automatically included:
https://stackoverflow.com/questions/61515389/how-to-add-headers-to-firebase-httpscallable
I've signed in with this:
auth.signInWithEmailAndPassword(email: user, password: password);
and afterwards I can call user.getIdToken() and it shows what looks like my auth id. But every way I try to check seems to indicate that the auth header isn't in the request to the cloud function.
I wrote the cloud function in python. It looks like this:
But this returns "None". Is there some issue maybe with how I call httpsCallable() in flutter? I'm not sure how it knows to get the auth id.
Beta Was this translation helpful? Give feedback.
All reactions