signIn method
override
Implementation
@override
Future<String> signIn(String email, String password) async {
try {
final session = await _account.createEmailPasswordSession(
email: email,
password: password,
);
debugPrint('Login successful. Session ID: ${session.$id}');
return session.userId;
} on AppwriteException catch (e) {
throw Exception('Failed to sign in: ${e.message}');
}
}