@punks/backend-entity-manager 0.0.499 → 0.0.501

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
@@ -23680,6 +23680,14 @@ let UserVerifyCompleteHandler = class UserVerifyCompleteHandler {
23680
23680
  verified: true,
23681
23681
  verifiedTimestamp: new Date(),
23682
23682
  });
23683
+ const token = await this.generateUserJwtToken(user, input.context);
23684
+ return {
23685
+ userId: user.id,
23686
+ token,
23687
+ };
23688
+ }
23689
+ async generateUserJwtToken(user, context) {
23690
+ return await this.jwtProvider.sign(extractUserTokenData(user, context));
23683
23691
  }
23684
23692
  async decodeToken(token) {
23685
23693
  return await this.jwtProvider.verify(token);
@@ -23999,7 +24007,7 @@ exports.AuthenticationService = class AuthenticationService {
23999
24007
  return await this.userVerifyRequestHandler.execute(input);
24000
24008
  }
24001
24009
  async userVerifyComplete(input) {
24002
- await this.userVerifyCompleteHandler.execute(input);
24010
+ return await this.userVerifyCompleteHandler.execute(input);
24003
24011
  }
24004
24012
  async userTokenVerify(input) {
24005
24013
  return await this.userTokenVerifyHandler.execute(input);