clearAuthToken static method

Future<void> clearAuthToken()

Clear auth token (logout)

Implementation

static Future<void> clearAuthToken() async {
  await TokenStorage.clearToken();
  _dio?.options.headers.remove('Authorization');
}