Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Firebase pipeline authentication error

Hi community

 

I am trying to auto-deploy my Vue.js app to Fireabse hosting, so I created a pipeline for that in my Bitbucket repo, with the following content, but the issue is right after building the app and deploying it to Firebase I get this error: 

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.

 

I am sure my access token is valid, as I generated it with login:ci . 

Why am I getting an authentication error?

 

bitbucket-pipelines.yml

image: node
pipelines: default:

- step: name: Test

script: - npm install && npm test

- step:

name: Build

script: - npm install && npm run build

artifacts: - build/**

- step:

name: Deploy to Firebase deployment: production

script: -

pipe: atlassian/firebase-deploy:0.2.1

variables:

FIREBASE_TOKEN: $1XXXXXXXXXXXX

PROJECT_ID: $XXXXXXXXXXXXX

1 answer

I recently had the same problem. Many others solved this by doing firebase logout and firebase login to refresh their credentials in the cli. I actually had to run firebase login:ci which regenerates a new TOKEN you can use in your project Bitbucket repo under Repository Settings > Repository Variables. I deleted my old token and just Created a new one with the new token and it worked again. Hope this helps if you haven't solved it yet. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you