creating a “login with” provider pseudocode if account already existIdentity 2.0 Linking Multiple Login ProvidersFirebase Manage Multiple auth providerFirebase authentication: linking multiple providesWhat password will I ask if auth/account-exists-with-different-credential is thrownAngularFire2 check if account existsiOS - Firebase - How to login with facebook for already registered via Email sign upFirebase reset password using provider accountsFirebase, login by same email different providerFirebase Account Merging with different providersFirebaseAuthUI for iOS. How to link auth providers to a user account

Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?

How strong are Wi-Fi signals?

Count rotary dial pulses in a phone number (including letters)

Count Even Digits In Number

Is it true that cut time means "play twice as fast as written"?

What was the idiom for something that we take without a doubt?

Should one buy new hardware after a system compromise?

How did these characters "suit up" so quickly?

How to use libraries with delays inside within a time critical STM32 HAL application?

Teacher help me explain this to my students

Why didn't Thanos use the Time Stone to stop the Avengers' plan?

Could a 19.25mm revolver actually exist?

Have 1.5% of all nuclear reactors ever built melted down?

Make 24 using exactly three 3s

Construct a word ladder

How to patch glass cuts in a bicycle tire?

A steel cutting sword?

Why does Mjolnir fall down in Age of Ultron but not in Endgame?

How do I partition a matrx into blocks and replace zeros with dots?

What is a Centaur Thief's climbing speed?

Python program to take in two strings and print the larger string

Is real public IP Address hidden when using a system wide proxy in Windows 10?

number headings

Is it possible to play as a necromancer skeleton?



creating a “login with” provider pseudocode if account already exist


Identity 2.0 Linking Multiple Login ProvidersFirebase Manage Multiple auth providerFirebase authentication: linking multiple providesWhat password will I ask if auth/account-exists-with-different-credential is thrownAngularFire2 check if account existsiOS - Firebase - How to login with facebook for already registered via Email sign upFirebase reset password using provider accountsFirebase, login by same email different providerFirebase Account Merging with different providersFirebaseAuthUI for iOS. How to link auth providers to a user account






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am trying to figure out how to address the issue of what to do when the email already exists in certain situations. I am currently using firebase, but I believe it would be the same problem no matter what software you use. Is there a standard way to do this?



Example:



  1. Login with Email / Register

  2. if "email" exists then error( EMAIL_EXISTS )

  3. else create account & login


  4. user must verify email



    EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"




  1. Login with Provider (google, fb, twitter, etc) / Register

  2. If "email" exists then add provider to account providers

  3. else create account (possibly ask for new password) & login


  1. Login with Email

  2. Click Connections / Providers

  3. Add Google / Facebook / Twitter etc to account

Is there a standard way to do this? I feel like I am missing some steps. I keep seeing many apps that do not address the issue and you must have a different account for each provider which is different than your email account. Obviously a good programmer thinks about these things.



How should I go about this?










share|improve this question




























    0















    I am trying to figure out how to address the issue of what to do when the email already exists in certain situations. I am currently using firebase, but I believe it would be the same problem no matter what software you use. Is there a standard way to do this?



    Example:



    1. Login with Email / Register

    2. if "email" exists then error( EMAIL_EXISTS )

    3. else create account & login


    4. user must verify email



      EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"




    1. Login with Provider (google, fb, twitter, etc) / Register

    2. If "email" exists then add provider to account providers

    3. else create account (possibly ask for new password) & login


    1. Login with Email

    2. Click Connections / Providers

    3. Add Google / Facebook / Twitter etc to account

    Is there a standard way to do this? I feel like I am missing some steps. I keep seeing many apps that do not address the issue and you must have a different account for each provider which is different than your email account. Obviously a good programmer thinks about these things.



    How should I go about this?










    share|improve this question
























      0












      0








      0








      I am trying to figure out how to address the issue of what to do when the email already exists in certain situations. I am currently using firebase, but I believe it would be the same problem no matter what software you use. Is there a standard way to do this?



      Example:



      1. Login with Email / Register

      2. if "email" exists then error( EMAIL_EXISTS )

      3. else create account & login


      4. user must verify email



        EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"




      1. Login with Provider (google, fb, twitter, etc) / Register

      2. If "email" exists then add provider to account providers

      3. else create account (possibly ask for new password) & login


      1. Login with Email

      2. Click Connections / Providers

      3. Add Google / Facebook / Twitter etc to account

      Is there a standard way to do this? I feel like I am missing some steps. I keep seeing many apps that do not address the issue and you must have a different account for each provider which is different than your email account. Obviously a good programmer thinks about these things.



      How should I go about this?










      share|improve this question














      I am trying to figure out how to address the issue of what to do when the email already exists in certain situations. I am currently using firebase, but I believe it would be the same problem no matter what software you use. Is there a standard way to do this?



      Example:



      1. Login with Email / Register

      2. if "email" exists then error( EMAIL_EXISTS )

      3. else create account & login


      4. user must verify email



        EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"




      1. Login with Provider (google, fb, twitter, etc) / Register

      2. If "email" exists then add provider to account providers

      3. else create account (possibly ask for new password) & login


      1. Login with Email

      2. Click Connections / Providers

      3. Add Google / Facebook / Twitter etc to account

      Is there a standard way to do this? I feel like I am missing some steps. I keep seeing many apps that do not address the issue and you must have a different account for each provider which is different than your email account. Obviously a good programmer thinks about these things.



      How should I go about this?







      login firebase-authentication login-control






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 4:14









      JonathanJonathan

      427516




      427516






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The first 4 steps are pretty much how you should implement it with Firebase Authentication if you have the One account per email address setting enabled (which it is by default) in your Firebase Authentication console.



          But if you want this flow in your app, I highly recommend checking if there is a FirebaseUI library with Auth for your platform. It exists for iOS, Android, and Web, and implements many common auth flows in a consistent way.






          share|improve this answer























            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%2f55320667%2fcreating-a-login-with-provider-pseudocode-if-account-already-exist%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 first 4 steps are pretty much how you should implement it with Firebase Authentication if you have the One account per email address setting enabled (which it is by default) in your Firebase Authentication console.



            But if you want this flow in your app, I highly recommend checking if there is a FirebaseUI library with Auth for your platform. It exists for iOS, Android, and Web, and implements many common auth flows in a consistent way.






            share|improve this answer



























              0














              The first 4 steps are pretty much how you should implement it with Firebase Authentication if you have the One account per email address setting enabled (which it is by default) in your Firebase Authentication console.



              But if you want this flow in your app, I highly recommend checking if there is a FirebaseUI library with Auth for your platform. It exists for iOS, Android, and Web, and implements many common auth flows in a consistent way.






              share|improve this answer

























                0












                0








                0







                The first 4 steps are pretty much how you should implement it with Firebase Authentication if you have the One account per email address setting enabled (which it is by default) in your Firebase Authentication console.



                But if you want this flow in your app, I highly recommend checking if there is a FirebaseUI library with Auth for your platform. It exists for iOS, Android, and Web, and implements many common auth flows in a consistent way.






                share|improve this answer













                The first 4 steps are pretty much how you should implement it with Firebase Authentication if you have the One account per email address setting enabled (which it is by default) in your Firebase Authentication console.



                But if you want this flow in your app, I highly recommend checking if there is a FirebaseUI library with Auth for your platform. It exists for iOS, Android, and Web, and implements many common auth flows in a consistent way.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 24 at 4:22









                Frank van PuffelenFrank van Puffelen

                254k31408435




                254k31408435





























                    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%2f55320667%2fcreating-a-login-with-provider-pseudocode-if-account-already-exist%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