reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.94k stars 1.41k forks source link

[bug] blocking SIWX error in the latest version of reown #3273

Open NeOMakinG opened 2 days ago

NeOMakinG commented 2 days ago

Link to minimal reproducible example

https://www.dailymeme.io/ but it's fixed now

Summary

You recently refactored SIWE to SIWX which cause our website signin to crash, as it's included inside a minor version the update has been done automatically by npm

image

As it's a minor version, the package has been updated automatically and completely killed the signin of our website in production, meaning that absolutely everyone might be impacted

List of related npm package versions

We fixed it by removing the ^ from this list:

    "@reown/appkit": "1.4.1",
    "@reown/appkit-adapter-wagmi": "1.4.1",
    "@reown/appkit-siwe": "1.4.1",

So we don't get the 1.5.0 version automatically

rtomas commented 2 days ago

hi @NeOMakinG, I hope you are doing good.

We cannot reproduce this issue. Would you mind sharing with me more context and your AppKit Configuration ?

We add some better error msg to siwx to identify easily the root cause ... https://github.com/reown-com/appkit/pull/3276

NeOMakinG commented 2 days ago

Our repository is private and it's super hard to share everything but here is the exact details on what did happen:

What I don't get is:

Why do we have a SIWX error message while we use the old appkit-siwe package alongside appkit and appkit-adapter-wagmi and not the appkit-siwx package

I think there is a breaking change where our old configuration is not compatible anymore with the minor version 1.5.0, but this is a breaking change and considering semver it shouldn't be introduced in a minor version...

zoruka commented 2 days ago

Hey @NeOMakinG! Thank you for reporting the issue!

After the version 1.5.0, internally AppKit is now treating SIWE as SIWX that's why we got this error message. But the interfaces for old configuration has not changed and they are expected to be working the same as before, resulting in non-breaking changes, that's why we pushed it in a minor version.

We have some example apps from which we have tested this same structure you have shared for next and react and they were working as expected. We are not sure exactly why this have happened there, is there any other error in the console happening before the log you have shared?

rtomas commented 9 hours ago

@NeOMakinG can you give us feedback about your issue ?

we fixed some stuff for siwx on v1.5.1