From e1417ed94f9cae1c2798c5033b77b3d72d98dfcc Mon Sep 17 00:00:00 2001 From: Patrick Sachmann <20001160+psachmann@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:31:43 +0200 Subject: [PATCH] EW-901 Fixing login error for TSC accounts (#5052) * Removing object id conversion in the TSP strategy --- src/services/authentication/strategies/TSPStrategy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/authentication/strategies/TSPStrategy.js b/src/services/authentication/strategies/TSPStrategy.js index 075e177286a..e615aa56857 100644 --- a/src/services/authentication/strategies/TSPStrategy.js +++ b/src/services/authentication/strategies/TSPStrategy.js @@ -176,7 +176,7 @@ class TSPStrategy extends AuthenticationBaseStrategy { // find account and generate JWT payload const account = await app.service('nest-account-service').findByUserId(user._id.toString()); - account._id = new ObjectId(account.id); + account._id = account.id; const { entity } = this.configuration; return { authentication: { strategy: this.name },