await gsjson({
spreadsheetId: spreadsheetId,
allWorksheets: true,
token: 'Bearer ya29.---------------------------------7yg',
tokentype: 'Bearer'
});```
This is throwing this error:
{
"message": "Invalid authorization key.",
"error_code": "",
"data": {}
}
Can someone help me understand why this is failing. I generated a new token using Postman Auth2.0.