Some auth code that will probably be changed