在后端登录用户(我使用Parse.com CloudCode)之后,我想在他的会话中将uri保存到他的化身中。我如何在Parse.com中做到这一点。我知道有一个对象Parse.Session.current(),但不知道如何使用它。
发布于 2016-01-05 07:27:07
就像解析提供的其他对象一样对待它。
Parse.Session.current().then(function(session) {
session.set("foo", "bar");
session.save().then(function() {
console.log(session.get("foo"));
});
});
应该将会话CLP设置为允许这样做。(必须设置该应用程序以要求可撤销的会话)。
https://stackoverflow.com/questions/34614910
复制相似问题