Comments (1)
When I try to debug and see whats happening, for this:
_jupiterAuthSubscription = _jupiterAuthService.onAuthStateChanged.listen((User user) {
it goes to a method which returns:
Unhandled exception:\nBad state: Stream has already been listened to.\n#0 _StreamController._subscribe (dart:async/stream_controller.dart:668:7)\n#1 _ControllerStream._createSubscription (dart:async/stream_controller.dart:818:19)\n#2 _StreamImpl.listen (dart:async/stream_impl.dart:472:9)\n#3 Stream.isEmpty (dart:async/stream.dart:1015:25)\n#4 _ControllerStream.Eval ()\n#5 JupiterAuthService.onAuthStateChanged (package:jupiter/services/jupiter_auth_service.dart:18:42)\n#6 AuthServiceAdapter._setup (package:jupiter/services/auth_service_adapter.dart:25:52)\n#7 new AuthServiceAdapter (package:jupiter/services/auth_service_adapter.dart:11:5)\n#8 MyApp.build. (package:jupiter/main.dart:19:27)\n#9 BuilderStateDelegate.initDelegate (package:provider/src/delegate_widget.dart:244:14)\n#10 _DelegateWidgetState._initDelegate (package:provider/src/delegate_widget.dart:117:21)\n#11 _DelegateWidgetState.initState (package:provider/src/delegate_widget.dart:109:...
but, inside of the JupiterAuthService, i have the same as MockAuthService:
class JupiterAuthService implements AuthService {
User _currentUser;
final StreamController<User> _onAuthStateChangedController =
StreamController<User>();
@override
Stream<User> get onAuthStateChanged => _onAuthStateChangedController.stream;
(in the last line, i got that exception)
from firebase_auth_demo_flutter.
Related Issues (20)
- Link-based email authentication doesn't work reliably HOT 1
- Using code with new project throws exception HOT 4
- Missing Google Auth Token
- Kindly Add Phone Authentication
- Invalid Dynamic Link - Requested URL must be parsable and complete DynamicLink HOT 1
- Clarification: What does "Add it to the Runner target in Xcode" mean? HOT 1
- Page specific authentication
- Google sign in causes app to crash on iOS HOT 1
- After clicking the activation link, device opens the same app twice
- Consider implementing sign_in_with_apple, a new Flutter Favorite package.
- No implementation found for method isAvailable on channel dev.gilder.tom/apple_sign_in HOT 2
- AuthResult can't be assigned to a variable of type 'FirebaseUSer'
- iOS App Stuck loading when locking/unlocking device after the Google Sign In dialog is shown
- updating for null safety?
- PlatformException at authentication HOT 1
- Unhandled Exception: MissingPluginException HOT 1
- After Signin with google(or other), go to SignUp page, no HomePage
- Logout don't rebuild UI HOT 3
- package error HOT 2
- Error when authwidgetbuilder used above material.router
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase_auth_demo_flutter.