Your relationship to God determines the legality of an Oath.
In the common oath as referenced above, God is not mentioned.
Both theologically and philosophically it is an intriguing situation.
On the one hand the Creator is set forth as the ultimate Authority in our founding documents, but those same documents disallow specificity in that respect.
Normal people have a sense of it, but those seem few in number these days.