Initial auth code and exception handling