isYouTubeConnected method

Future<bool> isYouTubeConnected()

Check YouTube connection status

Implementation

Future<bool> isYouTubeConnected() async {
  try {
    final GoogleSignIn? googleSignIn = _googleSignIn;
    if (googleSignIn == null) return false;

    final GoogleSignInAccount? currentUser = await googleSignIn.signInSilently();
    return currentUser != null;
  } catch (e) {
    debugPrint('Error checking YouTube connection status: $e');
    return false;
  }
}