File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ const sdk = require('node-appwrite');
22
33const client = new sdk.Client()
44 .setEndpoint('https://<REGION >.cloud.appwrite.io/v1') // Your API Endpoint
5- .setAdmin('') //
6- .setSession('') // The user session to authenticate with
7- .setKey('<YOUR_API_KEY>') // Your secret API key
8- .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
5+ .setProject('<YOUR_PROJECT_ID>') // Your project ID
6+ .setSession(''); // The user session to authenticate with
97
108const databases = new sdk.Databases(client);
119
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const sdk = require('node-appwrite');
22
33const client = new sdk.Client()
44 .setEndpoint('https://<REGION >.cloud.appwrite.io/v1') // Your API Endpoint
5- .setAdmin(' ') //
5+ .setProject('<YOUR_PROJECT_ID> ') // Your project ID
66 .setKey('<YOUR_API_KEY>'); // Your secret API key
77
88const databases = new sdk.Databases(client);
You can’t perform that action at this time.
0 commit comments