Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add token to hook payload for non-secure email change (#1763)
## What kind of change does this PR introduce? Fix #1744 by introducing the token to the Auth Hook payload for Send Email. The tokenHash seems to be already present. Currently, it's passed into the function as `otpNew`. Though it is indeed the OTP needed to validate the new email address we place it in the `token` field to maintain the convention that `token_hash_new` is only populated when secure email change is enabled New output structure: <img width="598" alt="image" src="https://github.com/user-attachments/assets/a8c44214-dcf2-4d2e-a653-b3953244ac69">
- Loading branch information