validations of connection to validation db
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -142,6 +142,7 @@ build/
|
||||
.firebase/
|
||||
dataconnect/.dataconnect/
|
||||
backend/dataconnect/.dataconnect/
|
||||
backend/dataconnect/dataconnect.yaml
|
||||
|
||||
# Debug Logs (Recursive)
|
||||
**/firebase-debug.log
|
||||
|
||||
@@ -13,6 +13,7 @@ import 'package:client_create_order/client_create_order.dart'
|
||||
as client_create_order;
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:krow_data_connect/krow_data_connect.dart' as dc;
|
||||
import 'package:krow_core/core.dart';
|
||||
import 'firebase_options.dart';
|
||||
|
||||
@@ -21,6 +22,9 @@ void main() async {
|
||||
await Firebase.initializeApp(
|
||||
options: kIsWeb ? DefaultFirebaseOptions.currentPlatform : null,
|
||||
);
|
||||
if (kDebugMode) {
|
||||
debugPrint('DataConnect config: ${dc.ExampleConnector.connectorConfig.toJson()}');
|
||||
}
|
||||
runApp(ModularApp(module: AppModule(), child: const AppWidget()));
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ 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
|
||||
@@ -359,6 +360,17 @@ 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