ivanvermeyen / laravel-google-drive-demo

Laravel & Google Drive Storage - Demo project with Laravel 5.4
405 stars 155 forks source link

Google_Service_Exception #71

Closed sam-mak-dream closed 4 years ago

sam-mak-dream commented 4 years ago

{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } }

Check credentials multiple times.. Issue in all routes..

ivanvermeyen commented 4 years ago

Hey,

I just went through the procedure again to create the OAuth credentials and it's still working. You probably missed a detail at some point...

Make sure you allow access to your account when you generate the credentials. You need to pass a warning screen about the app and then Google asks you to allow access 2 or 3 times.

Also make sure your .env and config files are using the same keys and you have the same driver name in the config..

ivanvermeyen commented 4 years ago

Closing for now, feel free to reopen if the issue persists :)