请问你使用的是 v2.0 版本的 SDK 吗?这个 API 是 2.0 增加的。

v1 中,请使用这个 API currentUser.authenticated() -> Boolean

也不行

var currentUser = AV.User.current();
currentUser.authenticated().then(function(authenticated){
// console.log(authenticated); 根据需求进行后续的操作
console.log(authenticated);
}, function (error) {
console.log(error);
});

报错:currentUser.authenticated(...).then is not a function

currentUser.authenticated() 同步返回一个 Boolean