Hi,
I am trying to implement Solana authentication with NextJS 14 using the dedicated package â@moralisweb3/nextâ. Currently the only version working with Solana/NextJS is the version â2.8.2â that is outdated for a yearâŠ
Maybe I am doing something wrong but I donât know.
For anyone to try and avoid NextJS 14 App router complexity, you can clone the official tutorial repo : nextjs_solana_auth_api
This use â@moralisweb3/nextâ v2.8.2 and works perfectly. But if you upgrade the â@moralisweb3/nextâ package (run npm install @moralisweb3/next@latest) you will not be able to authenticate. You will have this error :
âError: Operation requestChallengeSolana has no requestHandler in authâ
The latest package of â@moralisweb3/nextâ is â2.24.0â but even if you try to update the package to the following version of 2.8.2 which is 2.9.0 (deprecated for a year now) it wonât work.
I really need your help, because to make it work I am using the old deprecated version and I cannot use â@moralisweb3/nextâ for anything except authentication cause it is outdated.