Combined multiple auth checks to one getAuthType