Fix for auth method