Closed ncmbadmin closed 4 years ago
ncmb.User.login("username", "password") .then(function(data){ // ログイン後処理 console.log("Login success:" + ncmb.User.getCurrentUser().objectId); var tmpUser = ncmb.User.getCurrentUser(); tmpUser.delete() .then(function(){ console.log("After delete:" + ncmb.User.getCurrentUser().objectId); }) .catch(function(){ console.log("Delete failed."); }) }) .catch(function(err){ // エラー処理 console.log("Login failed:" + err); });
LOG
Login success:7***ln After delete:7***ln
LOG