Pattern
Cookie Domain and Access
cookie-scope-and-access-breakage
Mismatched cookie scope and browser access rules break auth persistence: cookies set for one host/subdomain aren’t sent to others unless Domain is widened, and HttpOnly/Next.js server-cookie APIs prevent JS from reading or updating tokens, yielding missing Authorization or session refresh failures.