John’s point is that only those who “walk in the light,” seeking to be like God in holiness and righteousness of life, and eschewing everything inconsistent with this, enjoy fellowship with the Father and the Son; those who “walk in the darkness,” whatever they may claim for themselves, are strangers to this relationship (1 Jn 1:6-7).

