Skip to content

Instantly share code, notes, and snippets.

@aashish-chaubey
Last active February 15, 2020 09:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aashish-chaubey/636d40b706dafb6ae04aafe21d08b98d to your computer and use it in GitHub Desktop.
manual user registraion
import firebase_admin
from firebase_admin import credentials
from firebase_admin import auth
cred = credentials.Certificate('secreatFile.json')
default_app = firebase_admin.initialize_app(cred)
# Search a user by email, ig registered
user = auth.get_user_by_email('chaubey.aashish@gmail.com')
# Example to register a new user
user = auth.create_user(email='johndoe@example.com', email_verified=True, phone_number='+15555550101', password='johndoe', display_name='John Doe',disabled=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment