File tree Expand file tree Collapse file tree
learning/tour-of-beam/frontend/lib/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import 'dart:async';
2121import 'package:firebase_auth/firebase_auth.dart' ;
2222import 'package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart' ;
2323import 'package:flutter/material.dart' ;
24+ import 'package:playground_components/playground_components.dart' ;
2425
2526import '../repositories/client/client.dart' ;
2627
@@ -40,7 +41,12 @@ class AuthNotifier extends ChangeNotifier {
4041 }
4142
4243 Future <void > logIn (AuthProvider authProvider) async {
43- await FirebaseAuth .instance.signInWithPopup (authProvider);
44+ try {
45+ await FirebaseAuth .instance.signInWithPopup (authProvider);
46+ } on Exception catch (e) {
47+ // TODO(nausharipov) review: why toasts are not shown in ToB?
48+ PlaygroundComponents .toastNotifier.addException (e);
49+ }
4450 }
4551
4652 Future <void > logOut () async {
You can’t perform that action at this time.
0 commit comments