docs: add note about actor_type in reset password event in v2.0.7 (#10322)

This commit is contained in:
Shahed Nasser
2024-11-27 19:04:40 +02:00
committed by GitHub
parent 263dbf7872
commit 70e179a475
3 changed files with 11 additions and 3 deletions
@@ -83,6 +83,12 @@ You subscribe to the `auth.password_reset` event. The event has a data payload o
- `token`: The token to reset the user's password.
- `actor_type`: The user's actor type. For example, if the user is a customer, the `actor_type` is `customer`. If it's an admin user, the `actor_type` is `user`.
<Note>
This event's payload previously had an `actorType` field. It was renamed to `actor_type` after [Medusa v2.0.7](https://github.com/medusajs/medusa/releases/tag/v2.0.7).
</Note>
In the subscriber, you:
- Decide the frontend URL based on whether the user is a customer or admin user by checking the value of `actor_type`.