Back from break and confused - RainbowKit NextJS related

I used Moralis like 6 months ago and everything was smooth but I took a break and now I see so many changes that I am confused.

The big one is this. If I use rainbowKit as a wallet provider will I still be able to use Moralis hosted database and user authentication?

I’ve been looking over the new docs here: https://docs.moralis.io/docs/sign-in-with-rainbowkit

And it seems you cannot. I really just want to use rainbowKit’s slick and clean UI but Moralis session/auth/server for the database.

Is this even possible? If so, how?

If you want to use RainbowKit but want to keep using Moralis servers (moralis-v1), you would need to integrate the two together in some way e.g. somehow get the MetaMask option to run Moralis.authenticate().

It may be easier to just copy the UI/modal and just directly integrate with moralis-v1 (e.g. Moralis.authenticate()).

1 Like

Interesting, okay I think I will take your advice and just try and copy the styling from rainbowkit.

Btw I’m reading the new docs and v2 of Moralis is very different from v1. I’m not seeing any react hooks in the new v2 docs.

Yes react-moralis (hooks) is for moralis-v1 only. Moralis v2 is focused on backend or API usage so it is up to you which tools/frameworks you want to use.

1 Like