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:
<span>✖ </span><span>Error:</span><span> HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See <a href="https://developers.google.com/identity/sign-in/web/devconsole-project" target="_blank" rel="noopener nofollow noreferrer">https://developers.google.com/identity/sign-in/web/devconsole-project</a>.</span>
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