I am working with Google Drive File Picker by following this Google Drive File Picker Example demo project. I have generated API Key and Client Id. But when I run the projec
Your client_id
is not correct, re-check pls
In my case, i mistakenly add a ,
in the values in my .env
files so better check that file
# check the comma at the end
AUTH_CLIENT_SECRET=randomauthsecret,
AUTH_CLIENT_ID=randomclientid,
That causes the wrong client id value. So just remove the ,
. Another thing, also don't enclose them in quotes.
AUTH_CLIENT_SECRET=randomauthsecret
AUTH_CLIENT_ID=randomclientid
In the following pic, I made with restricted mode in API keys section. This helped me to to remove the display. Hence finally, shown as:
No API keys to display
Try to validate the client_id with those that you created for your project as:
https://console.developers.google.com/google/maps-apis/credentials?folder=&organizationId=&project=saml-281612
The project name, like in my case, it is saml, should match with the project apps as saml to mitigate mismatch_uri error.
This helped me to remove all those errors as:
1. Error 400 : mismatch_uri
2. Error 401 : invalid client_id