FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    webhook/cookies

    Scheduled Pinned Locked Moved Solved
    Q&A
    1
    2
    375
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      Do you ever have access to user cookies in the data sent to a webhook?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dan
        last edited by

        Webhooks will send the data documented below. What is sent will vary according to the webhook event

        https://fusionauth.io/docs/v1/tech/events-webhooks/
        https://fusionauth.io/docs/v1/tech/events-webhooks/events/

        Cookies are usually stored in a browser, but you can send custom data to a webhook by including an eventInfo.data object:

        { //..
          "eventInfo": {
            "data": {
              "myCustomData": "FooBar"
            }
          },
        //...
        }
        

        So you could read from a cookie and set a form value, for example on a login event.

        More details here: https://github.com/FusionAuth/fusionauth-issues/issues/2263

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • danD dan has marked this topic as solved on
        • First post
          Last post