You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login to Firebase using firebase login, run for example firebase deploy.
Wait until reauthentication would be required.
Try to run firebase deploy again.
[REQUIRED] Expected behavior
Firebase CLI asks as the gcloud SDK for reauthentication.
[REQUIRED] Actual behavior
Firebase command fails with:
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.
Reacted by Jan Ochwat, Sebastian Schneider and Shubham-VE
This is going to be interesting to solve. Unfortunately, since the documentation you describe is labeled "beta", I'm hesitant to jump on this right now to fix. I would have to go digging into the authentication flow code as well to figure out where the error would be returned and figure out how to re-authenticate.
I'll leave this open for the time being, though I'm not sure when we'd get to it.
Activity
google-oss-bot commentedon Dec 4, 2019
This issue does not seem to follow the issue template. Make sure you provide all the required information.
bkendall commentedon Dec 4, 2019
This is going to be interesting to solve. Unfortunately, since the documentation you describe is labeled "beta", I'm hesitant to jump on this right now to fix. I would have to go digging into the authentication flow code as well to figure out where the error would be returned and figure out how to re-authenticate.
I'll leave this open for the time being, though I'm not sure when we'd get to it.
IchordeDionysos commentedon Mar 24, 2023
@bkendall this is no longer beta :D
And actually, the Google Workspace team forces the 16h-session duration now on Workspace customers :)
https://workspaceupdates.googleblog.com/2023/03/google-cloud-session-length-default-update.html
So this will be more and more a problem for people!
IchordeDionysos commentedon Apr 19, 2023
@bkendall @joehan I did some investigation on what error comes back from the Google token servers:
So it seems like checking for
error == invalid_grantand thenerror_subtype == invalid_raptwould be the place to force reauthentication.