Auth update

Stable but not done.