Breaking changes for NextAuth v5: - Updated route.ts to use NextAuthConfig and new export pattern - Changed getServerSession import to use auth from config - Updated types and session handling for NextAuth v5 - Maintained backward compatibility with existing auth flow