action-hosting-deploy icon indicating copy to clipboard operation
action-hosting-deploy copied to clipboard

[BUG] Authentication on PR

Open MitanshuShaBa opened this issue 3 years ago • 0 comments

Action config

- uses: FirebaseExtended/action-hosting-deploy@v0
  with:
    repoToken: "${{ secrets.GITHUB_TOKEN }}"
    firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_XYZ }}"
    projectId: xyz
    channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}"
    expires: 3d

Error message

FirebaseError: Firebase: Error (auth/popup-closed-by-user).
    at Be (assert.ts:122:13)
    at Ue (assert.ts:83:29)
    at popup.ts:284:13

Expected behavior

The preview website should be able to authenticate without any issues

Actual behavior

The preview website is not allowed to authenticate the users. I use a workaround where I add the preview URL in trusted domains while testing and then remove it after I am done.

MitanshuShaBa avatar Jan 06 '22 13:01 MitanshuShaBa