Blockchain login problem

Hi guys,

Iā€™m new with Moralis and Next JS. I tried the basic 1st which is login. However sometimes, the login fine, and sometimes it shows

The source code is in

Really need help to understand how to implement it. Thanks in advance

can you show what error did you get? seems like you cropped it

also in NextJS the convention is to use MoralisProvider to initialize instead of using Moralis.start

both will definitely work, just MoralisProvider already do all that for you plus a bunch of other things in more React fashion

I solved it by placing login.js in other domain and use

Now iā€™m trying to solve logout issue. It seems nothing happend when click it.