File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
presentation/screens/auth/authentication Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class AuthCubit extends Cubit<AuthState> {
121
121
return ;
122
122
}
123
123
if (! PlatformChecker .nativePlatform ().isAppleSystem ()) {
124
- // Let firebase handle the process for other platform using web page
124
+ // Let firebase handle the process for other platforms using web page
125
125
authCustomProvider = const AppleAuthCustomProvider (
126
126
identityToken: null ,
127
127
authorizationCode: null ,
Original file line number Diff line number Diff line change @@ -370,7 +370,8 @@ class FirebaseAuthProviderImpl extends AuthRepository {
370
370
return AuthUser .fromFirebase (user);
371
371
case AppleAuthCustomProvider ():
372
372
final identityToken = authCustomProvider.identityToken;
373
- final oAuthProvider = OAuthProvider ('apple.com' );
373
+ final oAuthProvider =
374
+ OAuthProvider (authCustomProvider.providerId); // apple.com
374
375
375
376
final result = identityToken != null
376
377
? await FirebaseAuth .instance.signInWithCredential (
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class _AuthenticationFormState extends State<AuthenticationForm> {
105
105
return ;
106
106
}
107
107
108
- var error = '${ context .loc .unknownError }. ${ e .toString ()}' ;
108
+ var error = context.loc.unknownErrorWithMessage ( e.toString ()) ;
109
109
var isDevError = true ;
110
110
if (e is AuthException ) {
111
111
switch (e.type) {
You can’t perform that action at this time.
0 commit comments