1
0
Fork 0
mirror of synced 2024-08-25 15:12:17 +12:00
appwrite/app/sdks/flutter-dart/docs/examples/account/update-recovery.md
2020-05-02 07:23:56 +03:00

23 lines
No EOL
426 B
Markdown

import 'package:appwrite/appwrite.dart';
// Init SDK
Client client = Client();
Account account = Account(client);
client
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = account.updateRecovery(
userId: '[USER_ID]',
secret: '[SECRET]',
password: 'password',
passwordAgain: 'password',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error);
});