-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_auth]: signOut
cannot sign out the Twitter Auth Provider
#17337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey there, i have been unable to reproduce using our example application This leads me to suspect it might be an implementation issue on your end. I would like to ask you to please check out the example application and compare implementations. If it still does not work I am happy to take a look at your repo if you are able to share it. Perhaps you might not be awaiting the signout properly? |
@MichaelVerdon : Thanks for your reply. The example you are pointing to does not involve Twitter sign-in. Could you elaborate on your changes to make the example work with that provider? Here are my code snippets with the package:
static Future<UserCredential> signInWithX() async {
final provider = TwitterAuthProvider();
provider.setCustomParameters({
'scopes': 'users.read offline.access',
'lang': 'en',
});
final credential = await _$.signInWithProvider(provider);
return credential;
}
static Future<void> logout() async {
await _$.signOut();
} |
Hi there, the example does have Twitter sign in, here is the exact link to it. Hope this helps 😄
|
@MichaelVerdon : Thanks for pointing it out. I've tried the example with "Sign in with Twitter" and it reuses my authorization in other apps as it opens a system web tab and redirects directly. Calling JEF-AN00.2025-05-09.14-36-12.mp4 |
Hi there, thanks for the video I can confirm I am able to reproduce and must have misunderstood you before and I believe this is expected behaviour. Whilst sign out makes the firebase session end I don't think it makes the twitter session end. And I do not think this is something we can do on our side. I think the only way around it is to make a flow where you sign out of twitter in browser at the same time as signing out of auth together. |
It seems that the native library contains the related ability. firebase/FirebaseUI-Android#645 |
I see, might be worth opening a ticket there and seeing what they say. |
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android, iOS
Description
Calling
FirebaseAuth.signOut
cannot sign out of Twitter from the opening web tab; it still automatically redirects to the previous logged-in Twitter account.Reproducing the issue
TwitterAuthProvider
to sign in.FirebaseAuth.instance.signOut
.TwitterAuthProvider
.Firebase Core version
3.13.0
Flutter Version
3.27.4
Relevant Log Output
Flutter dependencies
pubspec.lock
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: