Pull makeCredential into a public function