From 914060e5daebd0137d94ad81d5425e7e6c869d6e Mon Sep 17 00:00:00 2001 From: Ben Mansour Mansour <44977033+Mansourkira@users.noreply.github.com> Date: Mon, 15 Jan 2024 14:30:46 +0100 Subject: [PATCH] update loginCustomer with google --- package.json | 2 +- src/core/authentication/index.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 49c80b1..586b33f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sikka/hajar", - "version": "1.1.47", + "version": "1.1.48", "description": "Toolkit to create SaaS applications", "author": "Sikka Software (http://sikka.io)", "license": "MIT", diff --git a/src/core/authentication/index.js b/src/core/authentication/index.js index 6b841dd..b62814c 100644 --- a/src/core/authentication/index.js +++ b/src/core/authentication/index.js @@ -266,8 +266,7 @@ class HajarAuth { }; } else { // User exists, perform login - - const customerData = await this.Customer.findOne({ uid: user._id }); + const customerData = await this.Customer.findOne({ profile: user._id }); return { success: true, user: { ...user.toObject() },