Skip to content

Commit

Permalink
docs: missing import in ClientCredentials example (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored Oct 10, 2024
2 parents 8b4e17b + 9a8028c commit 120d1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/clients/js/template/README_initializing.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fgaClient = new {{appShortName}}Client({
#### API Token

```javascript
const { {{appShortName}}Client } = require('{{packageName}}'); // OR import { {{appShortName}}Client } from '{{packageName}}';
const { {{appShortName}}Client, CredentialsMethod } = require('{{packageName}}'); // OR import { {{appShortName}}Client, CredentialsMethod } from '{{packageName}}';

const fgaClient = new {{appShortName}}Client({
apiUrl: process.env.FGA_API_URL, // required
Expand All @@ -35,7 +35,7 @@ const fgaClient = new {{appShortName}}Client({
#### Client Credentials

```javascript
const { {{appShortName}}Client } = require('{{packageName}}'); // OR import { {{appShortName}}Client } from '{{packageName}}';
const { {{appShortName}}Client, CredentialsMethod } = require('{{packageName}}'); // OR import { {{appShortName}}Client, CredentialsMethod } from '{{packageName}}';

const fgaClient = new {{appShortName}}Client({
apiUrl: process.env.FGA_API_URL, // required
Expand Down

0 comments on commit 120d1c7

Please sign in to comment.