Skip to content

Commit fd8fcb8

Browse files
committed
Fix casing
1 parent 9913bad commit fd8fcb8

28 files changed

+649
-835
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Client, Account, AuthenticatorType } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.createMFAAuthenticator({
10+
type: AuthenticatorType.Totp
11+
});
12+
13+
console.log(result);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Client, Account, AuthenticationFactor } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.createMFAChallenge({
10+
factor: AuthenticationFactor.Email
11+
});
12+
13+
console.log(result);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Client, Account } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.createMFARecoveryCodes();
10+
11+
console.log(result);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Client, Account, AuthenticatorType } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.deleteMFAAuthenticator({
10+
type: AuthenticatorType.Totp
11+
});
12+
13+
console.log(result);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Client, Account } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.getMFARecoveryCodes();
10+
11+
console.log(result);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Client, Account } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.listMFAFactors();
10+
11+
console.log(result);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Client, Account, AuthenticatorType } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.updateMFAAuthenticator({
10+
type: AuthenticatorType.Totp,
11+
otp: '<OTP>'
12+
});
13+
14+
console.log(result);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Client, Account } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.updateMFAChallenge({
10+
challengeId: '<CHALLENGE_ID>',
11+
otp: '<OTP>'
12+
});
13+
14+
console.log(result);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Client, Account } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const account = new Account(client);
8+
9+
const result = await account.updateMFARecoveryCodes();
10+
11+
console.log(result);

docs/examples/tablesdb/create-row.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { Client, TablesDb } from "appwrite";
1+
import { Client, TablesDB } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
55
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

7-
const tablesDb = new TablesDb(client);
7+
const tablesDB = new TablesDB(client);
88

9-
const result = await tablesDb.createRow({
9+
const result = await tablesDB.createRow({
1010
databaseId: '<DATABASE_ID>',
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',

0 commit comments

Comments
 (0)