validations of connection to validation db
This commit is contained in:
@@ -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