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

    Any examples using NextJS - Serverside React?

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    3
    3
    932
    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.
    • R
      rationem
      last edited by

      Are there any guides using NextJs where authorisation is both server-side and client-side?
      This particularly applies where a large number of the pages are generated serverside and HTML is sent to the browser as opposed to the standard React model of JS download that then retrieves the HTML as required.

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @rationem
        last edited by

        @rationem I know we have a nextjs example queued up for the next few weeks, but I don't know if it will meet your needs, as I think it is a bit simpler than what you outline.

        Have you made any progress on this? Seems like an interesting use case.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        K 1 Reply Last reply Reply Quote 0
        • K
          kasir-barati @dan
          last edited by

          Hey @dan,

          Just wanted to point out a few things. First I have a custom Backend app and this doc does not cover that at all. It looked to me like it is communicating directly with FusionAuth which is not a good idea in my case (I am using mostly Client side components). So I switched gears and tried to use @fusionauth/react-sdk instead. It was working until I got busted with this broken build log. Any suggestion on how to fix my build since I guess it is related to NextJS and how we lack document at build time since it works just fine when I run the NextJS app in dev mode.

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