my_app_write_auth 1.0.5
my_app_write_auth: ^1.0.5 copied to clipboard
appwrite_auth_package
TODO: This package is based on app write we can user app_write authentication
Features #
this is sample auth functionality with our backend response.
Getting started #
List prerequisites and provide or point to information on how to start using the package.
Usage #
Include short and useful examples for package users. Add longer examples
to example/main.dart
folder.
Future<Map<String, dynamic>?> appWriteSingUp({required SignUpRequest signUpRequest}) async {
Map<String, dynamic>? response;
try {
response = await AppWriteService.createEmailAccount(
email: signUpRequest.email, password: signUpRequest.password, name: signUpRequest.name);
} catch (error) {
if (error is Map<String, dynamic>) {
response = error;
} else {
print("Signup Error => $error");
}
}
return response;
}
Additional information #
this is a simple example if you find any kind of bugs and want to contribute most welcome.