Closed Ivokato closed 2 months ago
I don't have much to offer, but curiously, have you tried key: key,
inside defining your JWT?
I met same issue with official documentation code Cannot use api key only to create a new spreadsheet - it is only usable for read-only access of public docs
Seems No permission from service account to create spreadsheet
fix incoming shortly!
After reinstalling my node modules I got this error:
Cannot use api key only to create a new spreadsheet - it is only usable for read-only access of public docs
My bare minimum code taken from the official documentation is failing:
I figured out that the error is thrown because there is a key called "apiKey" in the JWT. Downgrading the google-auth-library to 9.13.0 has solved the issue for me so I would recommend either fixing the dependency or updating the check that throws the error