Extract NextAuth configuration into a shared library, load admin sidebar items from role permissions, and update related RBAC types and UI.