@dereekb/dbx-firebase 9.23.12 → 9.23.14
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.
|
@@ -8,6 +8,7 @@ import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifi
|
|
|
8
8
|
import * as i1 from '@angular/fire/auth';
|
|
9
9
|
import { authState, idToken, GoogleAuthProvider, FacebookAuthProvider, TwitterAuthProvider, GithubAuthProvider, signInWithPopup, createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, reauthenticateWithPopup, provideAuth, getAuth, connectAuthEmulator } from '@angular/fire/auth';
|
|
10
10
|
import { AUTH_ADMIN_ROLE, cachedGetter, urlWithoutParameters, addToSet, removeFromSet, filterMaybeValues, mapIterable, asArray, excludeValuesFromArray, containsStringAnyCase, addToSetCopy, iterableToArray, PromiseUtility, forEachKeyValue, invertDecision, readableError, isMaybeSo, firstValue } from '@dereekb/util';
|
|
11
|
+
import { safeFormatToISO8601DateString, msToSeconds } from '@dereekb/date';
|
|
11
12
|
import { sendPasswordResetEmail } from 'firebase/auth';
|
|
12
13
|
import { getToken, initializeAppCheck, ReCaptchaV3Provider } from 'firebase/app-check';
|
|
13
14
|
import * as i1$1 from '@angular/fire/app-check';
|
|
@@ -24,7 +25,6 @@ import * as i1$4 from '@dereekb/firebase';
|
|
|
24
25
|
import { firebaseAuthErrorToReadableError, ScheduledFunctionDevelopmentFunctionTypeEnum, clientFirebaseFirestoreContextFactory, SystemStateFirestoreCollections, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, FirebaseDevelopmentFunctions, iterationQueryDocChangeWatcher, firebaseQuerySnapshotAccumulator, firebaseQueryItemAccumulator, firestoreModelKeysFromDocuments, firestoreModelIdsFromDocuments, documentReferencesFromDocuments, getDocumentSnapshots, getDataFromDocumentSnapshots, latestSnapshotsFromDocuments, dataFromDocumentSnapshots, loadDocumentsForKeys, loadDocumentsForDocumentReferences, loadDocumentsForIds, asFirestoreModelKeyCollectionType, buildFirebaseCollectionTypeModelTypeMap, FirestoreAccessorStreamMode, firestoreModelIdsFromKey, firestoreModelKeyPartPairs, firestoreModelKeyPairObject, flatFirestoreModelKey, documentDataWithIdAndKey, inferKeyFromTwoWayFlatFirestoreModelKey, clientFirebaseStorageContextFactory } from '@dereekb/firebase';
|
|
25
26
|
import * as i1$3 from '@dereekb/dbx-form';
|
|
26
27
|
import { AbstractAsyncFormlyFormDirective, usernamePasswordLoginFields, provideFormlyContext, AbstractSyncFormlyFormDirective, emailField, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, AbstractConfigAsyncFormlyFormDirective, pickableItemChipField, filterPickableItemFieldValuesByLabel } from '@dereekb/dbx-form';
|
|
27
|
-
import { msToSeconds } from '@dereekb/date';
|
|
28
28
|
import { initializeApp } from 'firebase/app';
|
|
29
29
|
import * as i6 from '@angular/fire/app';
|
|
30
30
|
import { FirebaseApp, provideFirebaseApp } from '@angular/fire/app';
|
|
@@ -44,14 +44,18 @@ function authUserInfoFromAuthUser(user) {
|
|
|
44
44
|
email: user.email,
|
|
45
45
|
phoneNumber: user.phoneNumber,
|
|
46
46
|
photoURL: user.photoURL,
|
|
47
|
-
uid: user.uid
|
|
47
|
+
uid: user.uid,
|
|
48
|
+
creationTime: safeFormatToISO8601DateString(user.metadata.creationTime),
|
|
49
|
+
lastSignInTime: safeFormatToISO8601DateString(user.metadata.lastSignInTime)
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
function firebaseAuthTokenFromUser(user) {
|
|
51
53
|
return {
|
|
52
54
|
email: user.email,
|
|
53
55
|
emailVerified: user.emailVerified,
|
|
54
|
-
phoneNumber: user.phoneNumber
|
|
56
|
+
phoneNumber: user.phoneNumber,
|
|
57
|
+
creationTime: safeFormatToISO8601DateString(user.metadata.creationTime),
|
|
58
|
+
lastSignInTime: safeFormatToISO8601DateString(user.metadata.lastSignInTime)
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
|