Enable the People API and Google Drive API from the Google API Console.
Add http://localhost as an "Authorised JavaScript origin" and http://localhost/login-callback as an "Authorised redirect URI" in the Google API Console. Replace localhost with your host origin if you are running the project on a remote server.
Replace the fields in data/driveCredentials.json with your registered clientId and clientSecret.
If you are running the project on a remote server, set the environmental variable DRIVE_REDIRECT_URI=[insert your host origin here]/login-callback.
请发表评论