mysterious-rose-40371
10/22/2024, 4:51 PMbefore
, nor the after
action triggers because, as per explained in the doc :
before
registration: The hook runs when a registration flow starts. (what does "starts" means here ? it means that this action trigger will happen instantly after we generate a new flow ID thanks to this endpoint https://www.ory.sh/docs/reference/api#tag/frontend/operation/createBrowserRegistrationFlow ? If so, it will happen before form data was submitted hence we won't have the necessary formData to base our checks on)
after
registration: The hook runs when a user successfully registers in the system. (So, this happens after the form has been submitted, but also after a user has successfully registered, so we won't be able to inject our own checks to potentially prevent the account creation)
So, is what we are trying to do doable here ? and if so, is there a recommended way to do it ?
Many thanks in advance!!brief-egg-61061
10/22/2024, 4:52 PMbrief-egg-61061
10/22/2024, 4:53 PM