Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google OAuth 2.0 not detects restored credentials

I accidentally deleted my Firebase project. As it turned out this project was linked with Google Cloud project which was responsible for OAuth 2.0 credentials and prompt screen information. Later I restored the Firebase project, the Google Cloud project and the OAuth 2.0 credentials. But my Sign in with Google still not working, it gives me "Access blocked: Authorization Error. The OAuth client was deleted. Error 401: deleted_client" error. I thought that Google needs some time to detect all the restored things, but a day already passed since restoration and I'm still getting same error. 

Do I need to perform some additional actions after restoration to make it work or wait more time? Or restored credentials are not valid anymore and I should generate new ones?

Solved Solved
0 5 9,023
1 ACCEPTED SOLUTION

After waiting for 4 days and after I've messaged Google Support about this problem my old credentials started to work. Though I don't know which action resulted in problem solve.

View solution in original post

5 REPLIES 5

Hello @Amaimersion,

Welcome to Google Cloud Community!

I see that you've already tried restoring the project, you should restart your services also then see if that'll work.

If this didn't work, the error may be due to the old tokens are still currently used and to solve this, you could try deleting the old token, it will re-authenticate for you and create new token , here is a related issue in StackOverflow which can help you.

Thanks!

I have no services to restart because I'm using Google Cloud only for OAuth2 client credentials and consent screen.

I tried to generate new token, but it didn't solved the issue. I think the token is not related to this issue because the token is not being used at the stage of Google Sign In consent screen.

I'm opening URL like this https://accounts.google.com/o/oauth2/v2/auth?client_id=X&<other parameters> and getting "Error 401: deleted_client error." 

I tried to change some info in OAuth consent screen and now in Google Cloud console I can't submit OAuth consent screen for the verification. I'm getting this error "com.google.apps.framework.request.BadRequestException: Brand state must be enabled for developer verification review. Request ID: 12373663081180191231"

After waiting for 4 days and after I've messaged Google Support about this problem my old credentials started to work. Though I don't know which action resulted in problem solve.

Hello,

I have same problem "Error 401: deleted_client" after restore deletion Firebase project connected do Google Cloud. How long takes renew credentials? How can i contact to support?

Hi! I have similar problem. 

I am experiencing an issue with Google OAuth 2.0 authentication. I accidentally deleted my OAuth client in Google Cloud Console but later restored it. However, users are still receiving the following error when trying to sign in:

"Error 401: deleted_client. The OAuth client was deleted."

I have checked the settings in Google Cloud Console → Credentials, ensured that the new OAuth 2.0 Client ID is active and properly configured, but the issue persists.

Top Labels in this Space
Top Solution Authors