Issue with FusionAuth React SDK and next-client-cookies Adapter in Next.js 13.1.2
-
Hello FusionAuth Community,
I'm encountering an issue while integrating the FusionAuth React SDK with my Next.js application (version 13.1.2). I'm using the next-client-cookies adapter for handling cookies, but I keep running into the following error (screenshot attached for reference).
I've tried all available versions of next-client-cookies, but none have resolved the issue. Has anyone faced a similar problem or have suggestions on how to resolve this?
Any help would be greatly appreciated!
Thanks in advance.
-
@aman-c do you have a repo available for this?
Also what are you trying to use
next-client-cookies
for in the app? Is it in a client-side only app?Are you trying to access
app.at
to get the Auth cookie? -
We are using react sdk integration in our next.js client app and while importing eg : useCookies from nextClient cookies . When we are running application we are facing this issue , I am adding screenshot for your reference and this my piece of code .
'use client' import { useCookies } from 'next-client-cookies'; export default function Providers({ children }) { return ( <FusionAuthProvider {...config} nextCookieAdapter={useCookies}> {children} </FusionAuthProvider> ); }
-
@Alex-Patterson Can you please look into this one , thanks a lot in advance.