logout static method
Implementation
static Future<void> logout() async {
//de register the device
String? userId = Prefs.getString(PREF_USER_ID, null);
String? appId = Prefs.getString(PREF_APP_ID, null);
if (userId != null && appId != null) {
await RemoveTokenController().start(appId, userId);
}
//reset the preferences
await Prefs.putString(PREF_USER_ID, null);
await Prefs.putString(PREF_RAVEN_USER, null);
await Prefs.putString(PREF_USER_FCM_TOKEN, null);
}