<!-- Step 1 [READ THIS] --> <!-- For issues or feature requests related to Firebase Authentication in Flutter, file a GitHub issue. If this is a bug report, make sure the issue title clearly describes the problem. If this is a feature request, make sure the issue title starts with "FR:". For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/) with the firebase-authentication tag. For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk) Google group. For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized [Firebase support channel](https://firebase.google.com/support/). --> <!-- Step 2 --> ### [REQUIRED] Describe your environment * Windows 10 * Flutter 3.29.3 • channel stable *firebase_core: ^3.13.0 *firebase_auth: ^5.5.2 *google_sign_in: ^6.3.0 *firebase_database: ^11.3.5 <!-- Step 3 --> ### [Undefined class 'OAuthCredential'. Try changing the name to the name of an existing class, or creating a class with the name 'OAuthCredential'. #### Steps to reproduce: <!-- When update firebase_auth, google_sign_in, firebase_core latest version? --> #### Relevant Code: <!-- final OAuthCredential credential = GoogleAuthProvider.credential( accessToken: googleAuth.accessToken, idToken: googleAuth.idToken, ); --> https://stackblitz.com/fork/firebase-issue-sandbox ```dart Future<User?> signInWithGoogle() async { try { final GoogleSignInAccount? googleUser = await googleSignIn.signIn(); final GoogleSignInAuthentication googleAuth = await googleUser!.authentication; final OAuthCredential credential = GoogleAuthProvider.credential( accessToken: googleAuth.accessToken, idToken: googleAuth.idToken, ); final UserCredential userCredential = await _auth.signInWithCredential(credential); return userCredential.user; } catch (e) { print("Error signing in with Google: $e"); return null; } } ``` 