Fixes auth method.