此示例中,我正在尝试通过Apple实现Firebase身份验证https://medium.com/@karlwhiteprivate/flutter-firebase-sign-in-with-apple-c99967df142f
但是我遇到了这个问题
未定义的类'OAuthProvider'。
在此摘要中
OAuthProvider oAuthProvider =
new OAuthProvider(providerId: "apple.com");
final AuthCredential credential = oAuthProvider.getCredential(
idToken:
String.fromCharCodes(appleIdCredential.identityToken),
accessToken:
String.fromCharCodes(appleIdCredential.authorizationCode),
);
OAuthProvider
提供者最近被添加到firebase_auth
。您需要将项目中的firebase_auth
版本升级到以下版本: