Fixed compiler errors for the new auth functionality