Firebase Authentication Error

firebase

#1

I kept getting this error when I followed the tutorial to set up Firebase deployment

Error: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

Any help is appreciated


#2

Most likely your credentials are incorrect at the deployment time. If you encrypted your credentials, they were probably encrypted incorrectly. Try specifying the repo with -r, and the endpoint with --pro (for .com), or --org (for .org); e.g.,

travis encrypt -r OWNER/REPO --com

Alternatively, try setting it on the settings panel.