[SOLVED] Auth and Aurora

Hello everyone, I am currently trying to allow user on the Aurora chain to connect to my Dapp, but I fail everytime… I get an API fail error POST request.

I am not sure but I am guessing that the aurora chain is not supported on Moralis yet ?

I am using next.js and this is my config file maybe I’ve configured the chain wrong ?

//_app
import { createClient, configureChains, WagmiConfig } from "wagmi"

import auroraChain from "../constants/auroraChain"

import { SessionProvider } from "next-auth/react"
import { publicProvider } from "wagmi/providers/public"
import Layout from "../components/layout"
import { useRouter } from "next/router"

import "../styles/globals.css"

const { provider, webSocketProvider } = configureChains(
    [auroraChain],
    [publicProvider()]

    // infuraProvider({ apiKey: process.env.INFURA_API_KEY })
)

const client = createClient({
    provider,
    webSocketProvider,
    autoConnect: true,
})

function MyApp({ Component, pageProps }) {
    const router = useRouter()
    const showHeader = router.pathname === "/signin" ? false : true
    return (
        <WagmiConfig client={client}>
            {showHeader && <Layout />}
            <SessionProvider session={pageProps.session} refetchInterval={0}>
                <Component {...pageProps} />
            </SessionProvider>
        </WagmiConfig>
    )
}

export default MyApp

any leads are as always greatly appreciated !!

Aurora is currently not supported. You can see the list of supported chains here.

1 Like

alright thank you ! Have a great evening !