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;
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:
- Login with Email / Register
- if "email" exists then error( EMAIL_EXISTS )
- else create account & login
user must verify email
EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"
- Login with Provider (google, fb, twitter, etc) / Register
- If "email" exists then add provider to account providers
- else create account (possibly ask for new password) & login
- Login with Email
- Click Connections / Providers
- 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
add a comment |
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:
- Login with Email / Register
- if "email" exists then error( EMAIL_EXISTS )
- else create account & login
user must verify email
EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"
- Login with Provider (google, fb, twitter, etc) / Register
- If "email" exists then add provider to account providers
- else create account (possibly ask for new password) & login
- Login with Email
- Click Connections / Providers
- 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
add a comment |
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:
- Login with Email / Register
- if "email" exists then error( EMAIL_EXISTS )
- else create account & login
user must verify email
EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"
- Login with Provider (google, fb, twitter, etc) / Register
- If "email" exists then add provider to account providers
- else create account (possibly ask for new password) & login
- Login with Email
- Click Connections / Providers
- 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
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:
- Login with Email / Register
- if "email" exists then error( EMAIL_EXISTS )
- else create account & login
user must verify email
EMAIL_EXISTS = "Please login with your <%provider%> account, your email already exists"
- Login with Provider (google, fb, twitter, etc) / Register
- If "email" exists then add provider to account providers
- else create account (possibly ask for new password) & login
- Login with Email
- Click Connections / Providers
- 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
login firebase-authentication login-control
asked Mar 24 at 4:14
JonathanJonathan
427516
427516
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 24 at 4:22
Frank van PuffelenFrank van Puffelen
254k31408435
254k31408435
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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