I was taught all through Catholic school that the role of the Godparents was to promise that the child would be raised as a Catholic in case of the passing of the parents.
Who taught you this? A lot of people think this is true, but I don’t know where they get the idea.
It has has no basis in Catholic canon law. The role of a sponsor in a Catholic baptism is:
Can. 872 Insofar as possible, a person to be baptized is to be given a sponsor who assists an adult in Christian initiation or together with the parents presents an infant for baptism. A sponsor also helps the baptized person to lead a Christian life in keeping with baptism and to fulfill faithfully the obligations inherent in it.
It may very well be that in past times or other cultures this was a role a Godparent took on based on the wishes of the parents. It might have even been a custom in some places.
But, it is not part of the role of a sponsor in the Church.
Now I’m being told that that is not the role. The job of the Godparent is to assist you in your faith and that it is illegal to promise such a thing. Which is true?
The *canonical *role of a Godparent is to assist the person being baptized in the faith.
The parents can choose to have them involved in another way if they want.
I’m not sure what you mean by “illegal” to promise to raise them Catholic in the event of their parents’ death. The parents could set up legal guardianship of their children with whomever they choose.