logout static method

Future<void> logout()

AUTO logout (401)

Implementation

static Future<void> logout() async {
  _token = null;

  await AppStorage.remove(_tokenKey);

  if (_onLogout != null) {
    _onLogout!();
  }
}