How to Get User after SignUp with Hooks when requireEmailVerification is true
For some reasons, since email verification is required after sign up, I couldnt get user context in the hook.
With the After hook, I populated some modeled data to the database after sign up. But since email verification is required to get a session Im kind of stuck. All I need is the user.id after the signup. And this Id is sent as a response to the user after sign up.
from the Middlewarecontext i am able to get a request body, Is it possible to get a response? Or is there a way to go around this to get a UserID after they signUp from middleware? Or Do I have to do something else?
With the After hook, I populated some modeled data to the database after sign up. But since email verification is required to get a session Im kind of stuck. All I need is the user.id after the signup. And this Id is sent as a response to the user after sign up.
from the Middlewarecontext i am able to get a request body, Is it possible to get a response? Or is there a way to go around this to get a UserID after they signUp from middleware? Or Do I have to do something else?
Solution