Skip to content

Commit 7c2aca1

Browse files
committed
Add anonymous auth
1 parent 31af3aa commit 7c2aca1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎step_5/lib/main.dart‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ChatScreenState extends State<ChatScreen> {
3434
@override
3535
void initState() {
3636
super.initState();
37+
FirebaseAuth.instance.signInAnonymously();
3738
_messagesReference.onChildAdded.listen((Event event) {
3839
setState(() {
3940
var val = event.snapshot.val();

0 commit comments

Comments
 (0)