I've just returned from a back-to-back from SJO on the same aircraft, which was much easier than at ALC, I'll say that much.
The passport check was done at the LGW lounge CS desk for me. It's just a simple check to ensure that you are eligible to enter the country.
I look forward to reading your report, bon voyage!