core/dashboard/src/middleware.ts
root cbe2688475 chore(dashboard): unify zitadel dashboard into core repository
- Renamed zitadel-dashboard to dashboard
- Integrated with rede5.com.br subdomains
- Updated project structure for monorepo consistency

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-09 20:09:43 +01:00

11 lines
202 B
TypeScript

import { withAuth } from "next-auth/middleware";
export default withAuth({
callbacks: {
authorized: ({ token }) => !!token,
},
});
export const config = {
matcher: ["/dashboard/:path*"],
};