![]() You will find multiple providers, but for this tutorial you only need to enable the Twitter provider: Therefore navigate to the Authentication tab and then click Sign-in method. Now before working on the application, you need to navigate to the Firebase console and enable twitter authentication. Enable Twitter Authentication in Firebase Then click on App Settings, enable the 3-legged OAuth and enable Request enable address from users:Īlso you need to add your own callback url, since the plugin twitter_login does not work with the firebase url, therefore in the callback url field just add something like this twitter-firebase-auth:// for example. Then copy both the api key and api secret key: After getting approved, you need to navigate to Developer Apps, then click on Create App:Īfter that, give your application any name you want: To use twitter authentication in your application, first you need to create an account at Developer Platform. This article is a followup to the last one: Using Google Sign-in With Firebase In Flutter, that’s why google_sign_in is added as a dependency also.Next, you need to add the following dependency to the pubspec.yaml file: Adding Firebase Auth And Twitter login To FlutterĪs I said before, to check how to create a flutter project and add the google-service.json file which is used for android, then please check this article Get Started With Firebase in Flutter. ![]() This article is aimed for the android phones. This article I will demonstrate how to use twitter_login and firebase_auth. In the last article we integrated google sign in to the flutter application. In the other two articles, I created a form using Flutter performed queries for the realtime database and authenticated users with Firebase, in the cloud firestore article, it was different code snippet related to Firestore and explaining each one. To know how to download the google-service.json file, you can check the first article in the above list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |