Using developers.google.com we created api user and downloaded credentials as json file. Now On my macbook gspread authentication is working fine while using credentials.js
You appear to be using a service account. In order for the service account to access your sperad sheet it needs to have access to it.
Make sure that you share the sheet with the service account email address you can do that though google drive web page