Passport etc will be checked by airline when you check in at Boston, there may be a further quick check as you board by the gate staff, this should be to collect the I94 stub or visa waiver stub, but no formal passport check by the authorities required at Newark. If you can stay "airside" at Newark 1 hour should be ample time to connect.