Implementing Firebase GitHub Authentication in Flutter

。_饼干妹妹 提交于 2020-04-30 08:45:10

问题


I am trying to implement the Firebase GitHub Authentication in FLutter with the help of this article: https://medium.com/flutter-community/implementing-firebase-github-authentication-in-flutter-1c49a172c648

The problem is that after successfully logging into GitHub, I get redirected to the URL appname://auth/handler?code=AUTH_CODE. This redirection is not being caught by my app as I’ve set the deep link configuration in Step 4 & 5 of the article.

I guess I am doing something wrong in the intent-filter Manifest file, It looks like this: Look into the data

<intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>

                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="auth"
                    android:scheme="appname" />
            </intent-filter>

Also, I have made separate files for Step 7 & 8 in the article. I have used the Step 7 code on the screen in which I am implementing the Signup functionality with button onPressed and the Step 8 code is in a separate signup widget with other authentication methods.

来源:https://stackoverflow.com/questions/61301801/implementing-firebase-github-authentication-in-flutter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!