Apperyio.User.logout([dbId])
Invalidates token in Appery.io Database. Returns promise.
Parameters
This function has the following parameters:
Arguments | Description |
---|---|
dbId | Database id. Optional if default database id is set. |
Apperyio.User.logout().then(function(result){
alert("success_" + JSON.stringify(result));
},function(error) {
alert("error_" + JSON.stringify(error));
});