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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    위키백과:대문 둘러보기 메뉴기부 안내모바일판 대문크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0CebuanoDeutschEnglishEspañolFrançaisItaliano日本語NederlandsPolskiPortuguêsРусскийSvenskaTiếng ViệtWinaray中文العربيةCatalàفارسیSrpskiУкраїнськаБългарскиНохчийнČeštinaDanskEsperantoEuskaraSuomiעבריתMagyarՀայերենBahasa IndonesiaҚазақшаBaso MinangkabauBahasa MelayuBân-lâm-gúNorskRomânăSrpskohrvatskiSlovenčinaTürkçe

                    용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh