Add endpoint as an argument to credentials/4