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');
2
2
3
3
const client = new sdk.Client()
4
4
.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
9
7
10
8
const databases = new sdk.Databases(client);
11
9
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const sdk = require('node-appwrite');
2
2
3
3
const client = new sdk.Client()
4
4
.setEndpoint('https://<REGION >.cloud.appwrite.io/v1') // Your API Endpoint
5
- .setAdmin(' ') //
5
+ .setProject('<YOUR_PROJECT_ID> ') // Your project ID
6
6
.setKey('<YOUR_API_KEY>'); // Your secret API key
7
7
8
8
const databases = new sdk.Databases(client);
You can’t perform that action at this time.
0 commit comments