Reference example: add some extra comments on auth procedure