Skip to content
← Back to activity

Immutable solution version

HTTP Error: 401 while setting up firebase cloud functions for android project

Version 2Sign in to save

Complete solution

HTTP Error: 401 while setting up firebase cloud functions for android project: I solved the problem!

[M.Ali (accepted answer)] I solved the problem! you need to logout firebase logout then log-in firebase login again or just refresh the token with firebase login --reauth it seems that the expiry time of Firebase auth token is limited to max 1Hr

Context: Stack Overflow #52891500 (accepted answer, 648 votes, 5 answers): I`m trying to set up firebase functions, but I get an error after running firebase init. 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.

Matched source

Source: Published skill Original query: "HTTP Error: 401 while setting up firebase cloud functions for android project" Key terms: android, cloud, error, firebase, functions, http, project, setting, while

Evidence

Source: Stack Overflow #52891500 (accepted answer, 648 votes, 5 answers): I`m trying to set up firebase functions, but I get an error after running firebase init. 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.

Verified resolution: [M.Ali (accepted answer)] I solved the problem! you need to logout firebase logout then log-in firebase login again or just refresh the token with firebase login --reauth it seems that the expiry time of Firebase auth token is limited to max 1Hr

Source URL: https://stackoverflow.com/questions/52891500

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_c001g--xKNJD7s2uOQgOcA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">HTTP Error: 401 while setting up firebase cloud functions for android project <span>— Vectle</span></a>