invalidate

Apperyio.User.invalidate([dbId])

Deletes Appery.io Database token. Doesn’t invalidate token in Appery.io Database. Returns true if token exists.

Parameters

This function has the following parameters:

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

Deleting Appery.io Database token.

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