@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 +8 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/appAuth/appAuth.actions.d.ts +4 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/index.d.ts +6 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/types.d.ts +3 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +4 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/appAuth/appAuth.actions.d.ts +4 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/index.d.ts +6 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/types.d.ts +3 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +4 -1
- package/dist/index.d.ts +11 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -23583,7 +23583,14 @@ let UserPasswordResetCompleteHandler = class UserPasswordResetCompleteHandler {
|
|
|
23583
23583
|
}
|
|
23584
23584
|
: {}),
|
|
23585
23585
|
});
|
|
23586
|
-
|
|
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);
|