signInWithPassword method
Signs in an existing user with email and password.
Example:
try {
final response = await authManager.signInWithPassword(
email: 'user@example.com',
password: 'password123',
);
if (response.user != null) {
print('Sign-in successful for user: \${response.user!.id}');
// AuthManager will automatically fetch and store the profile.
}
} on AuthException catch (e) {
print('Sign-in error: \${e.message}');
}
Implementation
Future<AuthResponse> signInWithPassword({
required String email,
required String password,
}) {
return _supabaseClient.auth.signInWithPassword(
email: email,
password: password,
);
}