executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
nextjs-authenticationSecure token storage (HttpOnly Cookies) and Middleware patterns. Use when implementing authentication, secure session storage, or auth middleware in Next.js.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use HttpOnly Cookies for token storage. Never use LocalStorage or sessionStorage.
HttpOnly, Secure cookies with SameSite: 'Lax' or 'Strict'. Set reasonable maxAge (e.g., 86400). Never store access tokens in localStorage or sessionStorage (XSS-vulnerable). LocalStorage causes hydration issues in Server Components.middleware.ts) for edge-side redirection and route protection.cookies() Promise from next/headers and must awaited.next-auth (Auth.js) or Clerk for social logins and session management.await auth() (Auth.js) or custom getSession() helper in Server Components.