FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Issue with FusionAuth React SDK and next-client-cookies Adapter in Next.js 13.1.2

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    13.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aman.c
      last edited by

      Hello FusionAuth Community,
      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>
        );
      }
      
      

      Any help would be greatly appreciated!

      Thanks in advance.

      Screenshot 2024-10-11 172348.png

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @aman.c
        last edited by

        @aman-c Have you been able to follow the Next.js quickstart?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post