feat: improve patient flow and pricing workflow
This commit is contained in:
@@ -78,10 +78,18 @@ class AuthNotifier extends StateNotifier<AuthState> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> signIn(String email, String password) async {
|
||||
Future<void> signIn(
|
||||
String email,
|
||||
String password, {
|
||||
required bool rememberSession,
|
||||
}) async {
|
||||
state = state.copyWith(isLoading: true, clearError: true);
|
||||
try {
|
||||
final result = await _repo.login(email, password);
|
||||
final result = await _repo.login(
|
||||
email,
|
||||
password,
|
||||
rememberSession: rememberSession,
|
||||
);
|
||||
state = AuthState(
|
||||
profile: result.user,
|
||||
memberships: result.tenants,
|
||||
|
||||
Reference in New Issue
Block a user