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

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript