@punks/backend-entity-manager 0.0.500 → 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,11 +23680,15 @@ let UserVerifyCompleteHandler = class UserVerifyCompleteHandler {
23680
23680
  verified: true,
23681
23681
  verifiedTimestamp: new Date(),
23682
23682
  });
23683
+ const token = await this.generateUserJwtToken(user, input.context);
23683
23684
  return {
23684
23685
  userId: user.id,
23685
- email: user.email,
23686
+ token,
23686
23687
  };
23687
23688
  }
23689
+ async generateUserJwtToken(user, context) {
23690
+ return await this.jwtProvider.sign(extractUserTokenData(user, context));
23691
+ }
23688
23692
  async decodeToken(token) {
23689
23693
  return await this.jwtProvider.verify(token);
23690
23694
  }