-
-
Save yaizudamashii/ae9ef11997a5c848ade47ae8e04e5d1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_auth/firebase_auth.dart' as FirAuth; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
final firebaseAuthProvider = Provider<FirAuth.FirebaseAuth>((ref) => FirAuth.FirebaseAuth.instance); | |
final authStateChangesProvider = StreamProvider<FirAuth.User>((ref) => ref.watch(firebaseAuthProvider).authStateChanges()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment