Connectkit Siwe for Next 14 / app router #412
elmariachi111
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This has been on my list for a while now, though still unsure if it should be a new package as Thanks for the code, it should be good help when working through this feature! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
seems as if the server side siwe package only supports pages router / Next's old server API. Also, the siwe package mixes frontend / react code into a server side include, which breaks my Next 14 build with a webpack error.
I spent some time rewriting the server side code and have put it into a separate file. Tried building the connectkit codebase but failed, so I thought I'll provide this as a gist: https://gist.github.com/elmariachi111/dd73eda88b1aacaa7146a2e31cc21024 feel free to use that code to save yourself from api fiddling.
Beta Was this translation helpful? Give feedback.
All reactions