The Canonical Gospels (Matthew, Mark, Luke, and John) are part of the New Testament and are accepted as authoritative in mainstream Christianity. The Non Canonical Gospels, Gospel of Thomas, Gospel of Mary Magdalene were rejected by the church, especially during the formation of the canon at the Council of Nicea.
The concept of sin and salvation is treated differently in these texts, with some Gnostic gospels focusing more on hidden knowledge.
-