@infrab4a/connect-angular 4.17.0-beta.12 → 4.17.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/angular-connect.module.mjs +11 -9
- package/esm2020/angular-firebase-auth.module.mjs +7 -1
- package/fesm2015/infrab4a-connect-angular.mjs +16 -8
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +16 -8
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -127,11 +127,14 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
127
127
|
], imports: [provideAuth((injector) => {
|
|
128
128
|
const app = injector.get(FirebaseApp);
|
|
129
129
|
try {
|
|
130
|
+
console.log('Initializing auth', app.name);
|
|
130
131
|
return initializeAuth(app, {
|
|
131
132
|
persistence: [indexedDBLocalPersistence, browserLocalPersistence],
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
135
|
catch (error) {
|
|
136
|
+
if (error instanceof Error)
|
|
137
|
+
console.error('Error initializing auth', error.message);
|
|
135
138
|
return getAuth(app);
|
|
136
139
|
}
|
|
137
140
|
})] });
|
|
@@ -142,11 +145,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
142
145
|
provideAuth((injector) => {
|
|
143
146
|
const app = injector.get(FirebaseApp);
|
|
144
147
|
try {
|
|
148
|
+
console.log('Initializing auth', app.name);
|
|
145
149
|
return initializeAuth(app, {
|
|
146
150
|
persistence: [indexedDBLocalPersistence, browserLocalPersistence],
|
|
147
151
|
});
|
|
148
152
|
}
|
|
149
153
|
catch (error) {
|
|
154
|
+
if (error instanceof Error)
|
|
155
|
+
console.error('Error initializing auth', error.message);
|
|
150
156
|
return getAuth(app);
|
|
151
157
|
}
|
|
152
158
|
}),
|
|
@@ -2717,10 +2723,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2717
2723
|
try {
|
|
2718
2724
|
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
2719
2725
|
console.log('APP_CHECK_PROVIDER', provider);
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2726
|
+
if (provider)
|
|
2727
|
+
return initializeAppCheck(app, {
|
|
2728
|
+
provider,
|
|
2729
|
+
isTokenAutoRefreshEnabled: true,
|
|
2730
|
+
});
|
|
2724
2731
|
}
|
|
2725
2732
|
catch (error) {
|
|
2726
2733
|
if (error instanceof Error)
|
|
@@ -2760,10 +2767,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2760
2767
|
try {
|
|
2761
2768
|
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
2762
2769
|
console.log('APP_CHECK_PROVIDER', provider);
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2770
|
+
if (provider)
|
|
2771
|
+
return initializeAppCheck(app, {
|
|
2772
|
+
provider,
|
|
2773
|
+
isTokenAutoRefreshEnabled: true,
|
|
2774
|
+
});
|
|
2767
2775
|
}
|
|
2768
2776
|
catch (error) {
|
|
2769
2777
|
if (error instanceof Error)
|