0maru / twitter_login

MIT License
54 stars 54 forks source link

Firebase Auth Handle is not working #120

Closed arslanrazacrew closed 1 year ago

arslanrazacrew commented 1 year ago

I'm using the below URL to redirect but this isn't working. Giving me error 'Unable to process the request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared.'

https://.firebaseapp.com/__/auth/handler

Julitech commented 1 year ago

I am using this directly from Firebase and have no issues

TwitterAuthProvider twitterProvider = TwitterAuthProvider(); userCredential = await _auth.signInWithProvider(twitterProvider);

0maru commented 1 year ago

@arslanrazacrew Sorry it took so long.

This plugin launches a browser, but it is not running on xxx.firebaseapp.com domain, so there is no session where the xxx.firebaseapp.com page is accessible.

I have verified this in my environment and it does not work with xxx.firebaseapp.com/__/auth/handler. If the firebase domain is available, it works if you configure it to redirect to another page instead of xxx.firebaseapp.com.

0maru commented 1 year ago

Duplicate of https://github.com/0maru/twitter_login/issues/113