After new user creation hook when using magic link plugin

I'm looking for a way to replicate the "send a notification to your channel when a new user is registered" example from the hooks documentation but for the magic link plugin. I see that I could instead hook into requests for the /magic-link/verify path, but there doesn't seem to be any way to distinguish successful verifications which result in a new user being created, versus those which don't. https://www.better-auth.com/docs/concepts/hooks#example-send-a-notification-to-your-channel-when-a-new-user-is-registered
Hooks | Better Auth
Better Auth Hooks let you customize BetterAuth's behavior
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?