• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
4
1.1k
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 16 Oct 2024, 05:46

    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.

    Screenshot 2024-10-11 172348.png

    A 1 Reply Last reply 16 Oct 2024, 16:55 Reply Quote 0
    • A
      Alex Patterson @aman.c
      last edited by 16 Oct 2024, 16:55

      @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?

      1 Reply Last reply Reply Quote 0
      • A
        aman.c
        last edited by 17 Oct 2024, 05:29

        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>
          );
        }
        

        Screenshot 2024-10-11 172348.png

        A 1 Reply Last reply 22 Oct 2024, 06:51 Reply Quote 0
        • A
          aman.c @aman.c
          last edited by 22 Oct 2024, 06:51

          @Alex-Patterson Can you please look into this one , thanks a lot in advance.

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post