authService function
- @Riverpod(keepAlive: true)
- dynamic ref
A provider for the AuthService class.
This provider is used to provide the AuthService class to the rest of the application. It is used to interact with Firebase Auth.
Usage:
ref.read(authServiceProvider).createUserWithEmailAndPassword(email, password);
Implementation
@Riverpod(keepAlive: true)
AuthService authService(AuthServiceRef ref) {
final instance = ref.read(authInstanceProvider);
return AuthService(instance);
}