Jose-cd / React-google-drive-picker

58 stars 70 forks source link

Why do we require a developer key? #47

Open prashilCeloxis opened 1 year ago

prashilCeloxis commented 1 year ago

Previously, we used to fetch files from Google Drive using the below code, which, as we can see, doesn't require a developer key. But since we are moving to React, we are using your library, which requires a developer key. Can you please tell me why I need a developer key?

gapi.load('auth', {'callback': function() {       window.gapi.auth.authorize(       {          'client_id': clientId,         'scope': scope,         'immediate': false       },       function(authResult) {         if (authResult && !authResult.error) {           oauthToken = authResult.access_token;         }         gapi.load('picker', {'callback': function() {           ....           }         });       })   }});

prashilCeloxis commented 1 year ago

Can you give an update on the above issue ?

longlong7211 commented 1 year ago

the developer key is api key

vegardok commented 1 year ago

The key should not be required if a token is provided. Setting it to an empty string "fixes" the issue.

wayneschuller commented 8 months ago

The key should not be required if a token is provided. Setting it to an empty string "fixes" the issue.

Wow - you are correct.

So the docs are incorrect when they say an API key is required.