<@U04UQ68083H> At signup, we would like to run so...
# ory-copilot
m
@chilly-king-10285 At signup, we would like to run some checks against our own external API, before proceeding to the account creation. (these checks will depend on the data submitted in the form) It seems like we cannot use either the
before
, 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!!
b
A message from kapa.ai
New message text here