1 John 1:7-9 (ESV)
7 But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus his Son cleanses us from all sin. 8 If we say we have no sin, we deceive ourselves, and the truth is not in us. 9 If we confess our sins, he is faithful and just to forgive us our sins and to cleanse us from all unrighteousness.
How is it that we who are sinful creatures can walk in the light of Jesus and have fellowship with Him. Despite our best efforts and noble intentions, sin is present in our lives. The way of the new covenant is as follows. “If we confess our sins, He is faithful and just to forgive our sins and to cleanse us from all unrighteousness.”
Our salvation depends on our repentance and His mercy. Walking with Him in His light will be according to our confession of sin and His faithful forgiveness.