fix: Add actor type to password reset event (#9301)

This commit is contained in:
Stevche Radevski
2024-09-25 12:26:45 +02:00
committed by GitHub
parent 358435d715
commit 7c4960a4d1
3 changed files with 14 additions and 6 deletions
@@ -9,7 +9,7 @@ export const POST = async (
req: AuthenticatedMedusaRequest,
res: MedusaResponse
) => {
const { auth_provider } = req.params
const { auth_provider, actor_type } = req.params
const { identifier } = req.body
const { http } = req.scope.resolve(
@@ -19,6 +19,7 @@ export const POST = async (
await generateResetPasswordTokenWorkflow(req.scope).run({
input: {
entityId: identifier,
actorType: actor_type,
provider: auth_provider,
secret: http.jwtSecret as string,
},