Exactly.
I maintain that if her oath of office required ending with the same phrase I once took the situation has different contexts. That ending phrase would be ‘so help me God’. I once had to use such as closing on taking a local government department head position. If such was not required I don’t see her having any right to prevent an authorized wedding.