Flutter App Giving Unauthenticated Errors When Calling Firebase Cloud Functions Directly
I tried using firebase cloud functions oncall method directly from my FLUTTER app and it keeps giving me an UNAUTHENTICATED error even when I am logged in Flutter app code CloudFun
Solution 1:
- first update the firebase tools and dependencies to latest.
npm install firebase-functions@latest firebase-admin@latest --save
npm install -g firebase-tools
after deploy
go to Google cloud console(GCP) not the firebase console GCP sidebar > Cloud functions > select your function go to PERMISSIONS >ADD > "allUsers"> Firebase > Firebase Viewer
do this at your own risk iam not any cloud devloper . i dont know the risk of adding allUsers like this iam new to flutter devlopment
Post a Comment for "Flutter App Giving Unauthenticated Errors When Calling Firebase Cloud Functions Directly"