All Questions
21 questions
1
vote
0
answers
58
views
Correct flow for retrieving access token of OIDC provider using Firebase Auth in Flutter
I'm using Firebase Auth in my app and I'm signing in using an OAuthProvider like this:
final credential = await FirebaseAuth.instance.signInWithProvider(
OAuthProvider('oidc.my-oidc-provider')
.....
0
votes
0
answers
32
views
Exception is not passed through to the caller Flutter
I have this 2 methods in flutter for firebase phone authentication:
Future<void> verifyPhone(Function() completion) async {
_logger.i("start verifyPhone");
await _firebaseAuth....
0
votes
0
answers
35
views
Manage loading state from one provider on widget and sub-widget
The following should be achieved using Flutter, Riverpod and Firebase.
It's about onboarding, firebase authentication getting additional user information from firebase.
(1) The app should display a ...
0
votes
2
answers
71
views
StreamProvider returning firebaseAuthStateChanges doesn't update after converting anonymous user to google user
I have a StreamProvider that returns authStateChanges:
//Provider Watch Auth state Changes
@riverpod
class UserAuth extends _$UserAuth {
@override
Stream<User?> build() {
print('Stream ...
0
votes
1
answer
442
views
Riverpod StreamProvider does not fire signout event for firebase auth
I have a simple flutter application using Riverpod. Also added a simple firebase project with "Anonymous sign in" functionality.
Using a authProvider as StreamProvider for application.
final ...
0
votes
1
answer
139
views
firebase authStatechanges after creating new user
I am handling state management in my Flutter app using Firebase authStateChanges
and the problem I am facing is authStateChanges immediately listen and changes route while it is not waiting for my ...
2
votes
0
answers
369
views
authstatechange with riverpod not rebuilding when firebase signup
I was doing authentication in flutter firebase with riverpod and i created signup method for createing user and signin for login the existing user.
Now the signin method work fine and after login the ...
0
votes
1
answer
52
views
I'm trying to route to the page userInfo but its not routing " the argument type 'String' can't be assigned to the parameter type 'Route\<Object?\>",
I'm trying to route to userinfo page and it should automatically route to userinfo page but shows me this error " Error: The argument type 'String' can't be assigned to the parameter type 'Route&...
0
votes
2
answers
1k
views
Calling Firebase auth login or logout with Flutter causes an assert "registry.containsKey(page) is not true" when using GoRouter shellroute?
I'm using a basic GoRouter with shellroute setup with a side navbar that is meant to remain consistent across pages. Both a login or logout call to Firebase will generate the assertion, but I don't ...
0
votes
2
answers
831
views
Flutter Firebase UI not updating and showing correct user info after signing out and in with different user
I'm creating and testing a simple dashboard that I want to display the current user's email. I'm just using [email protected] and [email protected]. When I signout of test1 and sign in with test2, my UI ...
5
votes
1
answer
4k
views
Using Firebase Authentication with Go Router and Riverpod
I've been reading through this latest implementation of Go Router with Riverpod but don't know how to use Firebase Authentication Streams with it, and I don't know if I need to be using ...
2
votes
0
answers
237
views
MaterialApp rebuild when Home widget calls build function
My app's MyApp widget, which returns MaterialApp (as done in virtually every Flutter app) is rebuild whenever the build function on the home widget is called. I need to know why this happens, as it ...
0
votes
1
answer
90
views
Combining Provider with a steam provider not updating
I am working on a technique to determine if some has elevated rights to show an edit icon. I am using Firebase for auth and firestore for back end.
My thoughts were to have the page do a quick check ...
1
vote
2
answers
2k
views
authStateChanges() updates only after hot restart when a new user is registered in Flutter
The stream from FirebaseAuth.instance.authStateChanges() method updates automatically when an existing user logs in or logs out and the change is reflected in the UI but when a new user is registered ...
0
votes
1
answer
553
views
Flutter Riverpod 1.0: What provider to use for Firebase AuthService object?
I want to use Firebase Phone authentication for an Flutter app. I have an AuthService class and I need to expose getter codeSent to change a UI. Third party examples from official Riverpod's site are ...
1
vote
1
answer
466
views
How to get data from the CurrentUser on flutter Firebase Authentification
I have this Firebase Authentication Providers with who I can create an user, Sign In and Sign Out with the methods (only with email and password)
My problem I that in the UI I want to show data from ...
3
votes
2
answers
1k
views
AutoDisposeStreamProvider is not being disposed at loggin out
Currently, we are using Firebase to implement a simple chat on our application.
We handle the application's launch and authentication with Riverpod.
Launching goes like as follows:
@override
Widget ...
2
votes
1
answer
3k
views
How to manage Firebase Authentication in Riverpod?
I have a firebase_providers.dart file which looks like this:
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:firebase_auth/firebase_auth.dart';
final firebaseAuthProvider = ...
2
votes
1
answer
609
views
How to update nested screens based on riverpods streamProvider?
Imagine there are three screens. main.dart, home.dart & signIn.dart
I have the code, shown below. When I'm in the homescreen and the streamProvider(firebaseAuthStateProvider) changes, I will get ...
5
votes
0
answers
629
views
Flutter app crashing after Firebase logout
iam still really new to Flutter. Iam using Riverpod together with Firebase and getting some crash after trying to logout. If someone could help it would be awesome! If its just a noob mistake iam ...
0
votes
1
answer
1k
views
Flutter Riverpod design pattern (inhibit garbage collection)
I've written a Swift/IOS package to externalize and standardize all of my Social/Federated/Firebase authentication boilerplate (both SDK's and UI). I've taken it upon myself to port this to Flutter ...