Feedback on Using Hooks for Email Verification After Sign-In

Hey everyone, I’m working on a project where I need to manually verify a user’s email on their first login and then update an external system with the user's application status afterward. I’m using a hook after sign-in to check if the user’s email is verified, and if not, I update it and then send an external status update. I've attached a screenshot of the code. Question: Do you think this is a good way to handle manual email verification on the first login? Or is there a better pattern or approach I should follow, maybe something more scalable or efficient? Also, any suggestions for improving the code itself would be greatly appreciated! Thanks in advance! 🙏
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?