How does user change their Email address?

Hello there, I came with a solution for this and I posted here:

Notes: My users are initially being created thru API calls, I do this because I have programmed my database to give them custom passwords, so, the magiclink from the user before and after changing the email will be different (you can send over thru an automated email), same with temporary passwords.

Quick demo: User Data Update Process 👨‍💻 | Loom

Thanks,