import 'package:flutter/foundation.dart'; import '../services/auth_token_store.dart'; class AuthNotifier extends ChangeNotifier { static final AuthNotifier instance = AuthNotifier(); Future onLoginSuccess(String token, {String? provider}) async { AuthTokenStore.setToken(token, provider: provider); AuthTokenStore.clearPendingProvider(); notifyListeners(); } void notify() { notifyListeners(); } }