Is it better to handle auth logic in layout/page.js or middleware?
Unanswered
American posted this in #help-forum
AmericanOP
Anytime I set cookie in middleware, server component fetches the previous cookie value instead of the most recent cookie value. So I'm not sure where I should set my auth logic