how to link multiple auth providers to an account on android?How to save an Android Activity state using save instance state?Why is the Android emulator so slow? How can we speed up the Android emulator?How to Link Multiple Auth Providers to an Firebase Account?Firebase Manage Multiple auth providerLink Multiple Auth Providers to an Account on Android - FirebaseLink firebase account on first app launchFirebase Multiple Auth Providers IssueHow to correctly link different Auth accounts in Firebase IOSLink Multiple accounts in FirebaseFirebaseAuthUI for iOS. How to link auth providers to a user account

What should we do with manuals from the 80s?

Is there a fallacy about "appeal to 'big words'"?

How can I find files in directories listed in a file?

The more + the + comparative degree

Did Michelle Obama have a staff of 23; and Melania have a staff of 4?

What modifiers are added to the attack and damage rolls of this unique longbow from Waterdeep: Dragon Heist?

Are there really no countries that protect Freedom of Speech as the United States does?

How much can I judge a company based on a phone screening?

How to measure if Scrum Master is making a difference and when to give up

Is this bar slide trick shown on Cheers real or a visual effect?

Doesn't the speed of light limit imply the same electron can be annihilated twice?

Spacing in "$d=2$-dimensional"

Weird resistor with dots around it

What is the prop for Thor's hammer (Mjölnir) made of?

Setting up a Mathematical Institute of Refereeing?

Why aren't rockets built with truss structures inside their fuel & oxidizer tanks to increase structural strength?

Scam? Phone call from "Department of Social Security" asking me to call back

Solving a maximum minimum problem

If a person claims to know anything could it be disproven by saying 'prove that we are not in a simulation'?

Who is the controller of a Pacifism enchanting my creature?

How to prevent criminal gangs from making/buying guns?

Heyawake: An Introductory Puzzle

Unconventional examples of mathematical modelling

Is there a word for returning to unpreparedness?



how to link multiple auth providers to an account on android?


How to save an Android Activity state using save instance state?Why is the Android emulator so slow? How can we speed up the Android emulator?How to Link Multiple Auth Providers to an Firebase Account?Firebase Manage Multiple auth providerLink Multiple Auth Providers to an Account on Android - FirebaseLink firebase account on first app launchFirebase Multiple Auth Providers IssueHow to correctly link different Auth accounts in Firebase IOSLink Multiple accounts in FirebaseFirebaseAuthUI for iOS. How to link auth providers to a user account






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Can anyone exactly give example how to merge multiple auth provider in firebase cause in firebase documentation also there is no exact code how to do it..
This is the exact error i m getting..
An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.










share|improve this question
































    0















    Can anyone exactly give example how to merge multiple auth provider in firebase cause in firebase documentation also there is no exact code how to do it..
    This is the exact error i m getting..
    An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.










    share|improve this question




























      0












      0








      0


      1






      Can anyone exactly give example how to merge multiple auth provider in firebase cause in firebase documentation also there is no exact code how to do it..
      This is the exact error i m getting..
      An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.










      share|improve this question
















      Can anyone exactly give example how to merge multiple auth provider in firebase cause in firebase documentation also there is no exact code how to do it..
      This is the exact error i m getting..
      An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.







      android firebase firebase-authentication






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 29 at 4:03







      Akshay LLS

















      asked Mar 27 at 11:50









      Akshay LLSAkshay LLS

      35 bronze badges




      35 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          The Firebase documentation on Linking Multiple Auth Providers to an Account on Android contains all the relevant code snippets you should need. If you'd like to see the context of that code, clicking the file name under each snippet (for example MainActivity.java) takes you to the repo that has the full working code.



          For an even more complete example, you can have a look at FirebaseUI for Android, which contains a complete UI for most authentication flows and which supports upgrading anonymous accounts through account linking. For example, see this code for upgrading an anonymous account to an email+password account.



          If you're having a hard time making these work in your own application, please update your question to show what you've already tried.






          share|improve this answer

























          • Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

            – Akshay LLS
            Mar 28 at 3:57












          • These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

            – Frank van Puffelen
            Mar 28 at 13:18











          • Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

            – Akshay LLS
            Mar 29 at 3:59











          • I have also updated my question

            – Akshay LLS
            Mar 29 at 4:01











          • The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

            – Frank van Puffelen
            Mar 29 at 14:25










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55376491%2fhow-to-link-multiple-auth-providers-to-an-account-on-android%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The Firebase documentation on Linking Multiple Auth Providers to an Account on Android contains all the relevant code snippets you should need. If you'd like to see the context of that code, clicking the file name under each snippet (for example MainActivity.java) takes you to the repo that has the full working code.



          For an even more complete example, you can have a look at FirebaseUI for Android, which contains a complete UI for most authentication flows and which supports upgrading anonymous accounts through account linking. For example, see this code for upgrading an anonymous account to an email+password account.



          If you're having a hard time making these work in your own application, please update your question to show what you've already tried.






          share|improve this answer

























          • Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

            – Akshay LLS
            Mar 28 at 3:57












          • These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

            – Frank van Puffelen
            Mar 28 at 13:18











          • Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

            – Akshay LLS
            Mar 29 at 3:59











          • I have also updated my question

            – Akshay LLS
            Mar 29 at 4:01











          • The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

            – Frank van Puffelen
            Mar 29 at 14:25















          0














          The Firebase documentation on Linking Multiple Auth Providers to an Account on Android contains all the relevant code snippets you should need. If you'd like to see the context of that code, clicking the file name under each snippet (for example MainActivity.java) takes you to the repo that has the full working code.



          For an even more complete example, you can have a look at FirebaseUI for Android, which contains a complete UI for most authentication flows and which supports upgrading anonymous accounts through account linking. For example, see this code for upgrading an anonymous account to an email+password account.



          If you're having a hard time making these work in your own application, please update your question to show what you've already tried.






          share|improve this answer

























          • Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

            – Akshay LLS
            Mar 28 at 3:57












          • These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

            – Frank van Puffelen
            Mar 28 at 13:18











          • Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

            – Akshay LLS
            Mar 29 at 3:59











          • I have also updated my question

            – Akshay LLS
            Mar 29 at 4:01











          • The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

            – Frank van Puffelen
            Mar 29 at 14:25













          0












          0








          0







          The Firebase documentation on Linking Multiple Auth Providers to an Account on Android contains all the relevant code snippets you should need. If you'd like to see the context of that code, clicking the file name under each snippet (for example MainActivity.java) takes you to the repo that has the full working code.



          For an even more complete example, you can have a look at FirebaseUI for Android, which contains a complete UI for most authentication flows and which supports upgrading anonymous accounts through account linking. For example, see this code for upgrading an anonymous account to an email+password account.



          If you're having a hard time making these work in your own application, please update your question to show what you've already tried.






          share|improve this answer













          The Firebase documentation on Linking Multiple Auth Providers to an Account on Android contains all the relevant code snippets you should need. If you'd like to see the context of that code, clicking the file name under each snippet (for example MainActivity.java) takes you to the repo that has the full working code.



          For an even more complete example, you can have a look at FirebaseUI for Android, which contains a complete UI for most authentication flows and which supports upgrading anonymous accounts through account linking. For example, see this code for upgrading an anonymous account to an email+password account.



          If you're having a hard time making these work in your own application, please update your question to show what you've already tried.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 27 at 14:03









          Frank van PuffelenFrank van Puffelen

          270k34 gold badges438 silver badges461 bronze badges




          270k34 gold badges438 silver badges461 bronze badges















          • Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

            – Akshay LLS
            Mar 28 at 3:57












          • These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

            – Frank van Puffelen
            Mar 28 at 13:18











          • Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

            – Akshay LLS
            Mar 29 at 3:59











          • I have also updated my question

            – Akshay LLS
            Mar 29 at 4:01











          • The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

            – Frank van Puffelen
            Mar 29 at 14:25

















          • Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

            – Akshay LLS
            Mar 28 at 3:57












          • These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

            – Frank van Puffelen
            Mar 28 at 13:18











          • Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

            – Akshay LLS
            Mar 29 at 3:59











          • I have also updated my question

            – Akshay LLS
            Mar 29 at 4:01











          • The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

            – Frank van Puffelen
            Mar 29 at 14:25
















          Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

          – Akshay LLS
          Mar 28 at 3:57






          Thank you for your answer but repo that has full working code is like this.. FirebaseUser currentUser = task.getResult().getUser(); // Merge prevUser and currentUser accounts and data // ... } }); // [END auth_link_and_merge] }They are not provide exact code how to merge if you can help me with that..so it will be helpful

          – Akshay LLS
          Mar 28 at 3:57














          These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

          – Frank van Puffelen
          Mar 28 at 13:18





          These are the two lines in the snippets that you need to use to link: github.com/firebase/FirebaseUI-Android/blob/… The FirebaseUI repo is used by thousands of developers to implement auth without writing their own code. If you're having trouble implementing these in your own app, show what you've tried in your question please.

          – Frank van Puffelen
          Mar 28 at 13:18













          Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

          – Akshay LLS
          Mar 29 at 3:59





          Sir Thank you again for your response but i want to merge google account to facebook...this code snippets that you give is for merging email and password ..so if you can please tell me how to do that that will be helpful.

          – Akshay LLS
          Mar 29 at 3:59













          I have also updated my question

          – Akshay LLS
          Mar 29 at 4:01





          I have also updated my question

          – Akshay LLS
          Mar 29 at 4:01













          The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

          – Frank van Puffelen
          Mar 29 at 14:25





          The code for that is in the next method. If you're having a hard time making that work, show in your question what you've tried.

          – Frank van Puffelen
          Mar 29 at 14:25








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55376491%2fhow-to-link-multiple-auth-providers-to-an-account-on-android%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?