Updated IonAuth code structure