fix: Add actor type to password reset event (#9301)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user