@blackcode_sa/metaestetics-api 1.14.12 → 1.14.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/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
- package/src/services/auth/auth.service.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -15996,7 +15996,7 @@ var AuthService = class extends BaseService {
|
|
|
15996
15996
|
* @returns Object containing user and claimed practitioner
|
|
15997
15997
|
*/
|
|
15998
15998
|
async claimDraftProfilesWithGoogle(idToken, practitionerIds) {
|
|
15999
|
-
var _a, _b, _c;
|
|
15999
|
+
var _a, _b, _c, _d;
|
|
16000
16000
|
try {
|
|
16001
16001
|
console.log("[AUTH] Starting claim draft profiles with Google", {
|
|
16002
16002
|
practitionerIdsCount: practitionerIds.length,
|
|
@@ -16013,6 +16013,7 @@ var AuthService = class extends BaseService {
|
|
|
16013
16013
|
console.log("[AUTH] currentUser IMMEDIATELY AFTER sign-in:", ((_b = this.auth.currentUser) == null ? void 0 : _b.uid) || "NULL");
|
|
16014
16014
|
console.log("[AUTH] User returned from signInWithCredential:", firebaseUser.uid);
|
|
16015
16015
|
const practitionerService = new PractitionerService(this.db, this.auth, this.app);
|
|
16016
|
+
console.log("[AUTH] currentUser after intializing practitionerService:", ((_c = this.auth.currentUser) == null ? void 0 : _c.uid) || "NULL");
|
|
16016
16017
|
let user = null;
|
|
16017
16018
|
try {
|
|
16018
16019
|
user = await this.userService.getUserById(firebaseUser.uid);
|
|
@@ -16022,7 +16023,7 @@ var AuthService = class extends BaseService {
|
|
|
16022
16023
|
}
|
|
16023
16024
|
if (!user) {
|
|
16024
16025
|
console.log("[AUTH] Creating user document DIRECTLY for:", firebaseUser.uid);
|
|
16025
|
-
console.log("[AUTH] Using THIS.auth.currentUser:", ((
|
|
16026
|
+
console.log("[AUTH] Using THIS.auth.currentUser:", ((_d = this.auth.currentUser) == null ? void 0 : _d.uid) || "NULL");
|
|
16026
16027
|
console.log("[AUTH] Using THIS.db:", this.db ? "EXISTS" : "NULL");
|
|
16027
16028
|
const userData = {
|
|
16028
16029
|
uid: firebaseUser.uid,
|
package/dist/index.mjs
CHANGED
|
@@ -16087,7 +16087,7 @@ var AuthService = class extends BaseService {
|
|
|
16087
16087
|
* @returns Object containing user and claimed practitioner
|
|
16088
16088
|
*/
|
|
16089
16089
|
async claimDraftProfilesWithGoogle(idToken, practitionerIds) {
|
|
16090
|
-
var _a, _b, _c;
|
|
16090
|
+
var _a, _b, _c, _d;
|
|
16091
16091
|
try {
|
|
16092
16092
|
console.log("[AUTH] Starting claim draft profiles with Google", {
|
|
16093
16093
|
practitionerIdsCount: practitionerIds.length,
|
|
@@ -16104,6 +16104,7 @@ var AuthService = class extends BaseService {
|
|
|
16104
16104
|
console.log("[AUTH] currentUser IMMEDIATELY AFTER sign-in:", ((_b = this.auth.currentUser) == null ? void 0 : _b.uid) || "NULL");
|
|
16105
16105
|
console.log("[AUTH] User returned from signInWithCredential:", firebaseUser.uid);
|
|
16106
16106
|
const practitionerService = new PractitionerService(this.db, this.auth, this.app);
|
|
16107
|
+
console.log("[AUTH] currentUser after intializing practitionerService:", ((_c = this.auth.currentUser) == null ? void 0 : _c.uid) || "NULL");
|
|
16107
16108
|
let user = null;
|
|
16108
16109
|
try {
|
|
16109
16110
|
user = await this.userService.getUserById(firebaseUser.uid);
|
|
@@ -16113,7 +16114,7 @@ var AuthService = class extends BaseService {
|
|
|
16113
16114
|
}
|
|
16114
16115
|
if (!user) {
|
|
16115
16116
|
console.log("[AUTH] Creating user document DIRECTLY for:", firebaseUser.uid);
|
|
16116
|
-
console.log("[AUTH] Using THIS.auth.currentUser:", ((
|
|
16117
|
+
console.log("[AUTH] Using THIS.auth.currentUser:", ((_d = this.auth.currentUser) == null ? void 0 : _d.uid) || "NULL");
|
|
16117
16118
|
console.log("[AUTH] Using THIS.db:", this.db ? "EXISTS" : "NULL");
|
|
16118
16119
|
const userData = {
|
|
16119
16120
|
uid: firebaseUser.uid,
|
package/package.json
CHANGED
|
@@ -900,6 +900,7 @@ export class AuthService extends BaseService {
|
|
|
900
900
|
console.log('[AUTH] User returned from signInWithCredential:', firebaseUser.uid);
|
|
901
901
|
|
|
902
902
|
const practitionerService = new PractitionerService(this.db, this.auth, this.app);
|
|
903
|
+
console.log('[AUTH] currentUser after intializing practitionerService:', this.auth.currentUser?.uid || 'NULL');
|
|
903
904
|
|
|
904
905
|
// Step 1: Check if User document already exists
|
|
905
906
|
let user: User | null = null;
|