Skip to content

Commit 1a8d525

Browse files
committed
Appwite 1.5 support
1 parent 1dacc5d commit 1a8d525

27 files changed

+319
-138
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Appwrite is an open-source backend as a service server that abstract and simplif
1313

1414

1515

16-
![Appwrite](https://appwrite.io/images/github.png)
16+
![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)
1717

1818
## Installation
1919

2020
Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^12.0.0-rc.6
24+
appwrite: ^12.0.0
2525
```
2626
2727
You can install packages from the command line:

docs/examples/account/add-authenticator.md renamed to docs/examples/account/create-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
MfaType result = await account.addAuthenticator(
9+
MfaType result = await account.createMfaAuthenticator(
1010
type: AuthenticatorType.totp,
1111
);

docs/examples/account/create-challenge.md renamed to docs/examples/account/create-mfa-challenge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
MfaChallenge result = await account.createChallenge(
10-
factor: AuthenticationFactor.totp,
9+
MfaChallenge result = await account.createMfaChallenge(
10+
factor: AuthenticationFactor.email,
1111
);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('5df5acd0d48c2'); // Your project ID
6+
7+
Account account = Account(client);
8+
9+
MfaRecoveryCodes result = await account.createMfaRecoveryCodes();

docs/examples/account/delete-authenticator.md renamed to docs/examples/account/delete-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
await account.deleteAuthenticator(
9+
await account.deleteMfaAuthenticator(
1010
type: AuthenticatorType.totp,
1111
otp: '<OTP>',
1212
);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('5df5acd0d48c2'); // Your project ID
6+
7+
Account account = Account(client);
8+
9+
MfaRecoveryCodes result = await account.getMfaRecoveryCodes();

docs/examples/account/list-factors.md renamed to docs/examples/account/list-mfa-factors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
MfaFactors result = await account.listFactors();
9+
MfaFactors result = await account.listMfaFactors();

docs/examples/account/verify-authenticator.md renamed to docs/examples/account/update-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
User result = await account.verifyAuthenticator(
9+
User result = await account.updateMfaAuthenticator(
1010
type: AuthenticatorType.totp,
1111
otp: '<OTP>',
1212
);

docs/examples/account/update-challenge.md renamed to docs/examples/account/update-mfa-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
result = await account.updateChallenge(
9+
result = await account.updateMfaChallenge(
1010
challengeId: '<CHALLENGE_ID>',
1111
otp: '<OTP>',
1212
);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('5df5acd0d48c2'); // Your project ID
6+
7+
Account account = Account(client);
8+
9+
MfaRecoveryCodes result = await account.updateMfaRecoveryCodes();

0 commit comments

Comments
 (0)