Connecting two firebase auth with one project












0















I'm making two apps App1 & App2 wich they share the same firebase database, but when user register with an email he can't register with it in App2, I got "email already exists".



How can I seperate these two projects and share the the same database and the user still register with the same email in the two apps ?










share|improve this question

























  • Are you using Firebase authentication?

    – Alex Mamo
    Nov 22 '18 at 16:07











  • Yes I am, that's what's cause the problem.

    – Aymen
    Nov 22 '18 at 16:08
















0















I'm making two apps App1 & App2 wich they share the same firebase database, but when user register with an email he can't register with it in App2, I got "email already exists".



How can I seperate these two projects and share the the same database and the user still register with the same email in the two apps ?










share|improve this question

























  • Are you using Firebase authentication?

    – Alex Mamo
    Nov 22 '18 at 16:07











  • Yes I am, that's what's cause the problem.

    – Aymen
    Nov 22 '18 at 16:08














0












0








0








I'm making two apps App1 & App2 wich they share the same firebase database, but when user register with an email he can't register with it in App2, I got "email already exists".



How can I seperate these two projects and share the the same database and the user still register with the same email in the two apps ?










share|improve this question
















I'm making two apps App1 & App2 wich they share the same firebase database, but when user register with an email he can't register with it in App2, I got "email already exists".



How can I seperate these two projects and share the the same database and the user still register with the same email in the two apps ?







android firebase firebase-authentication






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 16:33









Frank van Puffelen

231k28378403




231k28378403










asked Nov 22 '18 at 16:05









AymenAymen

569




569













  • Are you using Firebase authentication?

    – Alex Mamo
    Nov 22 '18 at 16:07











  • Yes I am, that's what's cause the problem.

    – Aymen
    Nov 22 '18 at 16:08



















  • Are you using Firebase authentication?

    – Alex Mamo
    Nov 22 '18 at 16:07











  • Yes I am, that's what's cause the problem.

    – Aymen
    Nov 22 '18 at 16:08

















Are you using Firebase authentication?

– Alex Mamo
Nov 22 '18 at 16:07





Are you using Firebase authentication?

– Alex Mamo
Nov 22 '18 at 16:07













Yes I am, that's what's cause the problem.

– Aymen
Nov 22 '18 at 16:08





Yes I am, that's what's cause the problem.

– Aymen
Nov 22 '18 at 16:08












1 Answer
1






active

oldest

votes


















0














As far as I can see, this is working as intended.



If the apps are meant to be perceived as separate applications for the user, they should be on separate projects on Firebase.



If the apps are meant to be perceived as part of the same product, then it makes sense that the user can register in one and then log in in the other app.



Alternatively: allow the same email address to be used in multiple accounts, by setting One account per email address to Allow creation of multiple accounts with the same email address in the Firebase Authentication console.






share|improve this answer


























  • I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

    – Aymen
    Nov 22 '18 at 16:38











  • But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

    – Frank van Puffelen
    Nov 22 '18 at 17:05











  • I think it's better to give me a solution rather than keep asking why.

    – Aymen
    Nov 22 '18 at 18:22











  • I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

    – Frank van Puffelen
    Nov 22 '18 at 19:40











  • If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

    – Frank van Puffelen
    Nov 22 '18 at 19:47











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%2f53434689%2fconnecting-two-firebase-auth-with-one-project%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














As far as I can see, this is working as intended.



If the apps are meant to be perceived as separate applications for the user, they should be on separate projects on Firebase.



If the apps are meant to be perceived as part of the same product, then it makes sense that the user can register in one and then log in in the other app.



Alternatively: allow the same email address to be used in multiple accounts, by setting One account per email address to Allow creation of multiple accounts with the same email address in the Firebase Authentication console.






share|improve this answer


























  • I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

    – Aymen
    Nov 22 '18 at 16:38











  • But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

    – Frank van Puffelen
    Nov 22 '18 at 17:05











  • I think it's better to give me a solution rather than keep asking why.

    – Aymen
    Nov 22 '18 at 18:22











  • I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

    – Frank van Puffelen
    Nov 22 '18 at 19:40











  • If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

    – Frank van Puffelen
    Nov 22 '18 at 19:47
















0














As far as I can see, this is working as intended.



If the apps are meant to be perceived as separate applications for the user, they should be on separate projects on Firebase.



If the apps are meant to be perceived as part of the same product, then it makes sense that the user can register in one and then log in in the other app.



Alternatively: allow the same email address to be used in multiple accounts, by setting One account per email address to Allow creation of multiple accounts with the same email address in the Firebase Authentication console.






share|improve this answer


























  • I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

    – Aymen
    Nov 22 '18 at 16:38











  • But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

    – Frank van Puffelen
    Nov 22 '18 at 17:05











  • I think it's better to give me a solution rather than keep asking why.

    – Aymen
    Nov 22 '18 at 18:22











  • I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

    – Frank van Puffelen
    Nov 22 '18 at 19:40











  • If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

    – Frank van Puffelen
    Nov 22 '18 at 19:47














0












0








0







As far as I can see, this is working as intended.



If the apps are meant to be perceived as separate applications for the user, they should be on separate projects on Firebase.



If the apps are meant to be perceived as part of the same product, then it makes sense that the user can register in one and then log in in the other app.



Alternatively: allow the same email address to be used in multiple accounts, by setting One account per email address to Allow creation of multiple accounts with the same email address in the Firebase Authentication console.






share|improve this answer















As far as I can see, this is working as intended.



If the apps are meant to be perceived as separate applications for the user, they should be on separate projects on Firebase.



If the apps are meant to be perceived as part of the same product, then it makes sense that the user can register in one and then log in in the other app.



Alternatively: allow the same email address to be used in multiple accounts, by setting One account per email address to Allow creation of multiple accounts with the same email address in the Firebase Authentication console.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 25 '18 at 16:31

























answered Nov 22 '18 at 16:33









Frank van PuffelenFrank van Puffelen

231k28378403




231k28378403













  • I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

    – Aymen
    Nov 22 '18 at 16:38











  • But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

    – Frank van Puffelen
    Nov 22 '18 at 17:05











  • I think it's better to give me a solution rather than keep asking why.

    – Aymen
    Nov 22 '18 at 18:22











  • I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

    – Frank van Puffelen
    Nov 22 '18 at 19:40











  • If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

    – Frank van Puffelen
    Nov 22 '18 at 19:47



















  • I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

    – Aymen
    Nov 22 '18 at 16:38











  • But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

    – Frank van Puffelen
    Nov 22 '18 at 17:05











  • I think it's better to give me a solution rather than keep asking why.

    – Aymen
    Nov 22 '18 at 18:22











  • I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

    – Frank van Puffelen
    Nov 22 '18 at 19:40











  • If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

    – Frank van Puffelen
    Nov 22 '18 at 19:47

















I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

– Aymen
Nov 22 '18 at 16:38





I agree with you, In my case I'm in the first case so could you give me a solution for this situation ? How can I share the same database with two seperate projects ?

– Aymen
Nov 22 '18 at 16:38













But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

– Frank van Puffelen
Nov 22 '18 at 17:05





But if the two apps are unrelated, you shouldn't share a database. What is your reason for wanting to share a database between unrelated apps?

– Frank van Puffelen
Nov 22 '18 at 17:05













I think it's better to give me a solution rather than keep asking why.

– Aymen
Nov 22 '18 at 18:22





I think it's better to give me a solution rather than keep asking why.

– Aymen
Nov 22 '18 at 18:22













I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

– Frank van Puffelen
Nov 22 '18 at 19:40





I gave you a solution in my answer: put them in separate projects. If you won't explain why that isn't an option, there isn't a lot more I can do.

– Frank van Puffelen
Nov 22 '18 at 19:40













If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

– Frank van Puffelen
Nov 22 '18 at 19:47





If you want help with the code that signs the user in and shows the error, edit your question to include the minimum code that reproduces the problem.

– Frank van Puffelen
Nov 22 '18 at 19:47


















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%2f53434689%2fconnecting-two-firebase-auth-with-one-project%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

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'