withCredentials fix