How can I create user lifecycle hooks in v4?

I will save this for future purposes, thanks!