Answers for "Cannot destructure property 'client_secret' of 'credentials.installed'"

2

Cannot destructure property 'client_secret' of 'credentials.installed'

var clientSecret = credentials.installed.client_secret;
In this line credentials is pointing to client_secret.json
so the first key has to be "installed". In my case the key was
"web" and that was causing the error. 
I just renamed the key "web" to "installed".
Posted by: Guest on December-28-2020

Code answers related to "Cannot destructure property 'client_secret' of 'credentials.installed'"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language