@punks/backend-entity-manager 0.0.501 → 0.0.502

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/cjs/index.js CHANGED
@@ -23583,7 +23583,14 @@ let UserPasswordResetCompleteHandler = class UserPasswordResetCompleteHandler {
23583
23583
  }
23584
23584
  : {}),
23585
23585
  });
23586
- return user.id;
23586
+ const token = await this.generateUserJwtToken(user, input.context);
23587
+ return {
23588
+ userId: user.id,
23589
+ token,
23590
+ };
23591
+ }
23592
+ async generateUserJwtToken(user, context) {
23593
+ return await this.jwtProvider.sign(extractUserTokenData(user, context));
23587
23594
  }
23588
23595
  async decodeToken(token) {
23589
23596
  return await this.jwtProvider.verify(token);