Ensures the current request has an authenticated admin user. Authoritative server-side check for admin-only pages; complements proxy.ts in Next.js 16.
proxy.ts
Optional redirect targets when access is denied.
The authenticated admin user's id.
Ensures the current request has an authenticated admin user. Authoritative server-side check for admin-only pages; complements
proxy.tsin Next.js 16.