Skip to content

Commit

Permalink
EW-901 Fixing login error for TSC accounts (#5052)
Browse files Browse the repository at this point in the history
* Removing object id conversion in the TSP strategy
  • Loading branch information
psachmann authored Jun 12, 2024
1 parent e04ca4f commit e1417ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/authentication/strategies/TSPStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit e1417ed

Please sign in to comment.