Reputation: 66
I am currently facing an issue with my Google API project. This project was deleted yesterday (I don't know who did it...) so I tried to undelete it. After this I still get the same error message:
Error: invalid_client
The OAuth client was deleted.
Request detail
cookie_policy_enforce=false
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.google.com/m8/feeds/ https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/tasks
response_type=code
access_type=offline
redirect_uri=https://domain.com/googleConnect
client_id=projectID.apps.googleusercontent.com
What can I do to completely revive this API project and fix this issue? Thanks for your help!
Upvotes: 2
Views: 16543
Reputation: 745
It looks like your OAuth client on the console got deleted.
You need to restore (if possible) or re-create it.
Dashboard -> Enable APIs and get credentials like keys -> Credentials -> New Credentials -> OAuth Client ID
Add the new client id and Reversed Client id to GoogleService-Info.plist
Finally add com.googleusercontent.apps.YourClientId to URLSchemes
Upvotes: 1