- I need to create users server-side using Firebase Admin.
- I disallow signups using Firebaseui with
disableSignUpstatus set totrue. - I wish to use email link sign in only.
When I create the user (in Python) using
auth.create_user(email=email, display_name=name, photo_url=profile_image_url)
a user is created but the user has no providerData and is shown the message:
newuser@example.com is not authorized to view the requested page.
That's unexpected - the Firebaseui documentation says that users can be created through the API and one would expect such users to be able to log in!
When I create the user as above but with a password, they are allowed to log in but they are shown a password prompt.
How can I create a new email user and force email link sign in?