Next.js Authentication HOC Pattern
Authentication pattern example using Higher Order Component, Zustand, and React Query
See the repository
isAuthenticated:
false
Login
Auth
Protected
Optional