wiseminds / mono-flutter

A Plugin implementing android and iOS SDKs for Connect, a Mono-hosted authorisation flow that works seamlessly across browsers and devices to make gaining access to your user's accounts as easy as possible.
MIT License
11 stars 17 forks source link

Customer ID for returning user not received in webhook Response #19

Open keyukemiubi opened 3 months ago

keyukemiubi commented 3 months ago

@wiseminds When a developer passes the customer ID in the customer object:

"customer": {
"id": "623625362356125afdea1245" 
}

The widget loads successfully, however the customerId returned in the webhook response is different from the passed.

{
  "data": {
    "event": "mono.events.account_connected",
    "data": {
      "id": "666aad2ed7b58466ce04d205",
      "customer": "65c30fba6564410ee4fbb590",
      "meta": {
        "ref": "099777"
      }
    }
  }
}

With a different customer ID returned, it shows there is an issue with customer ID passed to the flutter widget. See screenshots for more information

IMG_0853 WhatsApp Image 2024-06-13 at 11 24 49 AM WhatsApp Image 2024-06-13 at 11 25 34 AM