Refactor import order and remove debug logging in authentication repository
This commit is contained in:
@@ -2,7 +2,6 @@ import 'dart:developer' as developer;
|
||||
|
||||
import 'package:firebase_auth/firebase_auth.dart' as firebase;
|
||||
import 'package:firebase_data_connect/firebase_data_connect.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:krow_data_connect/krow_data_connect.dart' as dc;
|
||||
import 'package:krow_domain/krow_domain.dart'
|
||||
show
|
||||
@@ -13,8 +12,7 @@ import 'package:krow_domain/krow_domain.dart'
|
||||
AccountExistsException,
|
||||
UserNotFoundException,
|
||||
UnauthorizedAppException,
|
||||
PasswordMismatchException,
|
||||
GoogleOnlyAccountException;
|
||||
PasswordMismatchException;
|
||||
import 'package:krow_domain/krow_domain.dart' as domain;
|
||||
|
||||
import '../../domain/repositories/auth_repository_interface.dart';
|
||||
@@ -360,17 +358,6 @@ class AuthRepositoryImpl implements AuthRepositoryInterface {
|
||||
? businessResponse.data.businesses.first
|
||||
: null;
|
||||
|
||||
if (kDebugMode) {
|
||||
developer.log(
|
||||
'Client auth DataConnect: ${dc.ExampleConnector.connectorConfig.toJson()}',
|
||||
name: 'AuthRepository',
|
||||
);
|
||||
developer.log(
|
||||
'Client business session: userId=$firebaseUserId businessId=${business?.id} businessName=${business?.businessName} email=${business?.email}',
|
||||
name: 'AuthRepository',
|
||||
);
|
||||
}
|
||||
|
||||
dc.ClientSessionStore.instance.setSession(
|
||||
dc.ClientSession(
|
||||
user: domainUser,
|
||||
|
||||
Reference in New Issue
Block a user