Protects API routes for Page router pages WithApiAuthRequiredPageRoute or App router pages WithApiAuthRequiredAppRoute