logout static method
Implementation
static void logout ([String? id, String? token]) {
if (id != null) {
uid = id;
}
if (token != null) {
deviceToken = token;
}
if (uid == null || deviceToken == null) {
return;
}
_request('/users/$uid/tokens/$deviceToken', delete);
}