Hi all, I want to have a webhook message sent to m...
# ory-network
p
Hi all, I want to have a webhook message sent to my app after a user registers. This worked fine, but then when I added the option to automatically sign in a user after registration, things broke. I see in the docs that no webhooks are sent after the session webhook which logs in a user, so I need to specify the order of the webhooks. However, there isn’t really any information on how to do this. I assumed that I could just add
Copy code
- hook: session
to the list of hooks for after registration, but trying to update the identity config with this lead to a malformed error for the config, it says the value has to be web_hook. Here is the full config for reference:
Copy code
registration:
      after:
        hooks:
          - hook: web_hook
            config:
              auth:
                config:
                  in: header
                  name: Authorization
                  value: Api-Key <redacted>
                type: api_key
              body: redacted
              can_interrupt: false
              method: POST
              response:
                ignore: false
                parse: false
              url: <https://redacted/hooks/ory>
          - hook: session
This produces an error ^ Any help would be much appreciated!