我正在使用 Ionic 框架和 Wakanda 构建一个移动应用程序。如果我登录到移动应用程序,则不会存储会话。有谁知道为什么登录后会话丢失?
(使用网页登录确实有效)
$wakanda.$login("username", "password").$promise.then(function(e) {
if (e.result === true) {
$wakanda.$currentUser().$promise.then(function(e){
console.log(e)
// e.result == null, so the session isn't stored.
})
} else {
//Wrong username/password
}
})
提前致谢!碧玉