daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Sep 18th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exports.deleteNewUser = functions.auth.user().onCreate((userRecord, context) => {
  2.   const uid = userRecord.uid; // The Firebase user.
  3.   admin.auth().deleteUser(uid)
  4.     .then(function() {
  5.       console.log("Successfully deleted user: " + uid);
  6.     })
  7.     .catch(function(error) {
  8.       console.log("Error deleting user:", error);
  9.     });
  10. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top