logout static method
AUTO logout (401)
Implementation
static Future<void> logout() async {
_token = null;
await AppStorage.remove(_tokenKey);
if (_onLogout != null) {
_onLogout!();
}
}
AUTO logout (401)
static Future<void> logout() async {
_token = null;
await AppStorage.remove(_tokenKey);
if (_onLogout != null) {
_onLogout!();
}
}