Issue
During installation AngularFire by ng add @angular/fire
I get following error
? Paste authorization code here: 1//0cpKD...
Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
For CI servers and headless environments, generate a new token with firebase login:ci
I try do put different code-like string from firebase site but no luck. I also try to run firebase login:ci
, this generate long url, I copy it to browser and login to my google account, accept, and copy quite long token - but still no luck - it is wrong. How to get right authorization code?
Solution
I found following solution:
- Run
firebase login:ci --no-localhost
- and open in browser generated link, login to your google account and accept
- copy code (which is few times shorter than token (~62 chars)
- TRICK: do NOT PASTE that code to console - but open new separate console
- In new console run
ng add @angular/fire
- and paste that code during installation - now error not appear
Answered By - Kamil Kiełczewski
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.