logout

Apperyio.User.logout([dbId])

Invalidates token in Appery.io Database. Returns promise.

Parameters

This function has the following parameters:

ArgumentsDescription
dbIdDatabase id. Optional if default database id is set.
Example

Invalidating token in Appery.io Database.

Apperyio.User.logout().then(function(result){
   alert("success_" + JSON.stringify(result));
},function(error) {
   alert("error_" + JSON.stringify(error)); 
});