Add withCredentials PR from mwq27