feat: webview registration

This commit is contained in:
BLoC
2025-02-17 12:32:09 +03:00
parent bd519da491
commit 66e2578619
19 changed files with 1429 additions and 158 deletions

View File

@@ -0,0 +1,25 @@
import 'package:eatvio_app/features/auth/models/credentials_model.dart';
import 'package:eatvio_app/features/auth/models/token_model.dart';
import 'package:eatvio_app/features/auth/services/auth_service.dart';
class AuthRepository {
final AuthService authService;
AuthRepository({required this.authService});
Future<TokenModel> getTokenByCredentials(
String email,
String password,
) async {
try {
return await authService.getTokenByCredentials(
credentials: CredentialsModel(
email: email,
password: password,
),
);
} catch (e) {
rethrow;
}
}
}