Skip to content

Instantly share code, notes, and snippets.

@Saturate
Created May 2, 2019 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saturate/96939f28fb3c72717ab266b637ef8950 to your computer and use it in GitHub Desktop.
Save Saturate/96939f28fb3c72717ab266b637ef8950 to your computer and use it in GitHub Desktop.
admin.auth().createUser({
uid: '203757', // should match the user id in the database, in the DB we store additional information.
email: 'allankimmerjensen@gmail.com',
emailVerified: false,
password: 'secretPassword',
displayName: 'Allan Kimmer Jensen',
photoURL: 'http://www.example.com/12345678/photo.png',
disabled: false
})
.then(function(userRecord) {
// See the UserRecord reference doc for the contents of userRecord.
console.log('Successfully created new user:', userRecord.uid);
})
.catch(function(error) {
console.log('Error creating new user:', error);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment