Closed 0xAskar closed 2 years ago
Problem solved after missing If you haven't already, first set up your [Next.js](https://nextjs.org/) project with the [official Sign-In with Ethereum boilerplate for NextAuth.js.](https://docs.login.xyz/integrations/nextauth.js)
and then following that link to complete the setup for NextAuth
Update: I think I missed the
If you haven't already, first set up your [Next.js](https://nextjs.org/) project with the [official Sign-In with Ethereum boilerplate for NextAuth.js.](https://docs.login.xyz/integrations/nextauth.js)
and will do this right now. Have never used NextAuth, so that makes sense.Is there an existing issue for this?
RainbowKit Version
0.7.2
wagmi Version
0.7.5
Current Behavior
I'm trying to add the authentication through the tutorial on the site. However, I keep getting a "Error preparing message, please retry!" (first screenshot) error whenever I try to connect on the site. Before I added the authentication code, I was able to connect my wallet.
The console shows some next-auth errors in the console as well, second screenshot referring to api/auth/csrf, unexpected json parses, and api/auth/_log
Here's the app code:
Expected Behavior
Should prompt the signature
Steps To Reproduce
Should be able to just copy and paste the authentication code from rainbowkit's site. However, it my be just a specific env problem for our site.
There were no modifications to the auth. I installed both
@rainbow-me/rainbowkit-siwe-next-auth
andnext-auth
<-- for SessionProvider.Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
Screenshot of Error