Some auth bugfixes
Copy