question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

why can you login with provider but not create user with provider?

See original GitHub issue

Hi,

When I use a provider (in this case google) I would like to createUser automatically using the details available in the auth.

However createUser requires email / password.

If your using the federated oath method why the need for password?

couldn’t we simply use email / uid ?

If I manually create a user with key matching auth.uid logging in successfully finds the nominated profile.

If I then go and remove permission to the app in my google account, then login and give permission again the generated uuid remains the same, i.e. the old record for the previous permission still exists in the firebase auth.

So wouldn’t it be possible to also create user with: { provider: 'google', uid: 'mLHxB1FGmSg5bIkSB5PnmyWlceo2'} as credentials when using federated oath?

Id like to be able to automatically create a profile via createUser when a user logs in via a provider if no profile for that users uid exists yet.

I don’t quite see the point of supporting provider based login if the user still has to do an app specific email / password signup to be able to use the profile feature.

Granted I have only used the google provider but I assume at the firebase auth db level the records are all the same

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rhysburniecommented, Jan 19, 2017

Using popup seems to work version 1.1.5

1reaction
prescottpruecommented, Jan 19, 2017
  1. Are you using redirect or popup?
  2. What version of react-redux-firebase are you currently using?
  3. Can you Provide a repo where the issue is reproducible? I’m not seeing an issue when using the example

Use popup for now (the default if you don’t pass type). It seems that Firebase has changed their API slightly in recent updates, which has caused redirect to not work correctly. I have been in contact with someone at Firebase talking over the best way to address this issue (apparently due to not using a script tag).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I solve create account problem with different providers?
If you first sign in with Google using "example@gmail.com", it means a user will be created using this particular email address.
Read more >
User account from identity provider does not exist in tenant ...
Cause 1: Used unsupported account type (multitenant and personal accounts) If your app registration is set to a single-tenant account type,  ...
Read more >
Link Multiple Auth Providers to an Account Using JavaScript
You can allow users to sign in to your app using multiple authentication providers by linking auth provider credentials to an existing user...
Read more >
Create user on different user provider - OutSystems
When you use a different user provider and than Users (Default) and use it in other application than at the time of login...
Read more >
Identity provider login on OCP 4.x webconsole fails with error ...
Unable to login with configured IDP due to the error Could not create user ... unlimited access to our knowledgebase, tools, and much...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found