Skip to content

Commit 7f0b89b

Browse files
author
Ellet
committed
Few changes
1 parent 76b495f commit 7f0b89b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/logic/auth/cubit/auth_cubit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class AuthCubit extends Cubit<AuthState> {
121121
return;
122122
}
123123
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
125125
authCustomProvider = const AppleAuthCustomProvider(
126126
identityToken: null,
127127
authorizationCode: null,

lib/logic/auth/packages/firebase_provider.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ class FirebaseAuthProviderImpl extends AuthRepository {
370370
return AuthUser.fromFirebase(user);
371371
case AppleAuthCustomProvider():
372372
final identityToken = authCustomProvider.identityToken;
373-
final oAuthProvider = OAuthProvider('apple.com');
373+
final oAuthProvider =
374+
OAuthProvider(authCustomProvider.providerId); // apple.com
374375

375376
final result = identityToken != null
376377
? await FirebaseAuth.instance.signInWithCredential(

lib/presentation/screens/auth/authentication/w_authentication_form.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class _AuthenticationFormState extends State<AuthenticationForm> {
105105
return;
106106
}
107107

108-
var error = '${context.loc.unknownError}. ${e.toString()}';
108+
var error = context.loc.unknownErrorWithMessage(e.toString());
109109
var isDevError = true;
110110
if (e is AuthException) {
111111
switch (e.type) {

0 commit comments

Comments
 (0)