Skip to content

Commit

Permalink
docs: remove outdated reference to doc.useServiceAccountAuth()
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo Ephraim committed Oct 17, 2023
1 parent a7260d8 commit a60104b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/guides/authentication.md
Expand Up @@ -134,9 +134,10 @@ Here's one way to get it to work (using heroku cli):

And in some other scenarios, replacing newlines in your code can be helpful, for example:
```js
await doc.useServiceAccountAuth({
client_email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL,
private_key: process.env.GOOGLE_PRIVATE_KEY.replace(/\\n/g, "\n"),
const jwtFromEnv = new JWT({
email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL,
key: process.env.GOOGLE_PRIVATE_KEY.replace(/\\n/g, "\n"),
scopes: SCOPES,
});
```

Expand Down

0 comments on commit a60104b

Please sign in to comment.