⚠️ Troubleshooting
Firebase Functions returns UNAUTHENTICATED error

Firebase Functions returns UNAUTHENTICATED error

Some users have reported that Firebase Functions may in some cases return an UNAUTHENTICATED error when trying to call a function in the BackendKit Example View

Firebase Functions Unauthenticated Error

To solve this error, go to your Cloud Run Functions list in the Google Cloud Console (opens in a new tab), select the function that is causing the error, and click on the Permissions button.

Firebase Functions Unauthenticated Error Solution Step 1

Click on Add Principal

Firebase Functions Unauthenticated Error Solution Step 2

Enter allUsers in the New Principals field, select the Cloud Run Invoker role, and click on Save

Firebase Functions Unauthenticated Error Solution Step 3

Click on Allow Public Access

Firebase Functions Unauthenticated Error Solution Step 4

This will make the function available to access to all users, and the UNAUTHENTICATED error should be resolved. (Changes may take a few minutes to take effect)