Skip to content

Commit

Permalink
Few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Jan 24, 2024
1 parent 76b495f commit 7f0b89b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/logic/auth/cubit/auth_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AuthCubit extends Cubit<AuthState> {
return;
}
if (!PlatformChecker.nativePlatform().isAppleSystem()) {
// Let firebase handle the process for other platform using web page
// Let firebase handle the process for other platforms using web page
authCustomProvider = const AppleAuthCustomProvider(
identityToken: null,
authorizationCode: null,
Expand Down
3 changes: 2 additions & 1 deletion lib/logic/auth/packages/firebase_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ class FirebaseAuthProviderImpl extends AuthRepository {
return AuthUser.fromFirebase(user);
case AppleAuthCustomProvider():
final identityToken = authCustomProvider.identityToken;
final oAuthProvider = OAuthProvider('apple.com');
final oAuthProvider =
OAuthProvider(authCustomProvider.providerId); // apple.com

final result = identityToken != null
? await FirebaseAuth.instance.signInWithCredential(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class _AuthenticationFormState extends State<AuthenticationForm> {
return;
}

var error = '${context.loc.unknownError}. ${e.toString()}';
var error = context.loc.unknownErrorWithMessage(e.toString());
var isDevError = true;
if (e is AuthException) {
switch (e.type) {
Expand Down

0 comments on commit 7f0b89b

Please sign in to comment.