Thats the way! How to: Supabase SSR Auth in Nextjs 14

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024

ความคิดเห็น • 4

  • @dziaddy
    @dziaddy หลายเดือนก่อน +1

    Should we use SSR just for auth related stuff? Because their copy-paste clients have cookies so it disables cache

    • @J-HAYER
      @J-HAYER  หลายเดือนก่อน

      As far as I know the SSR package is only Auth related and it's package that provides you Auth functionality for client and server side

  • @pcv-free-as-a-bird
    @pcv-free-as-a-bird 4 หลายเดือนก่อน +1

    Hi there!! Thank you for the video it was really nice.. I’ve setup supabase/srr on my Remix js app. The createBroswerClient and createServerClient works!!
    But I still don’t understand the concept between when to use the Broswer Client or the Server Client.. I know that when it’s for front-end is the Broswer Client but I think I would need a real life example to understand both. Anyone can help me?

    • @J-HAYER
      @J-HAYER  4 หลายเดือนก่อน +2

      Hi for example when you have a stock or e-commerce application where you need real time data you use the browser client to fetch periodically.
      On the other hand when you have an application that shows blog posts that are not changing that often you use the server client to fetch them and make use of the SEO benefits