NEARLY 24 HOURS battling Supabase Auth in Next.js 14! ๐ค
Cookies refusing to persist, infinite redirect loops, middleware that straight-up hated me... I was this close* to throwing my laptop out the window.
Root cause: Bug in `@supabase/ssr` v0.1.0 (setAll() was a total ghost ๐ป)
Fix: Update to latest `window.location.href` instead of `router.push`
IT FINALLY WORKS!๐๐ฅ
Devs, keep your dependencies updatedโฆ but check the changelogs first lol
#NextJS #Supabase #WebDev #DebuggingHell