# Node red credential value coming as empty string in node details

**URL:** <https://discourse.nodered.org/t/node-red-credential-value-coming-as-empty-string-in-node-details/48117>\
**Category:** General\
**Created:** [7 July 2021 08:09 UTC](https://discourse.nodered.org/t/node-red-credential-value-coming-as-empty-string-in-node-details/48117 "2021-07-07T08:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surendra](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Surendra](https://discourse.nodered.org/u/Surendra)\
**Post date:** [7 July 2021 08:09 UTC](https://discourse.nodered.org/t/node-red-credential-value-coming-as-empty-string-in-node-details/48117/1 "2021-07-07T08:09:01Z")

</div>

I have added secretKey is credential object, when i update this value first time then secretKey value is coming is deploy.js file inside node information but when I redeploy the flow again without modifying secretKey value then its value coming as empty string in deploy.js. and Its value is coming fine when i update it again with new value.

Please suggest me the solution where i will get the credential value is deploy.js without updation.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/e/6e890c504362246888fb774a8f5684fbd1d33e52.png)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 July 2021 08:12 UTC](https://discourse.nodered.org/t/node-red-credential-value-coming-as-empty-string-in-node-details/48117/2 "2021-07-07T08:12:43Z")

</div>

Hi @Surendra

Credential properties are handled differently to normal node properties. By default, they are _not_ loaded by the editor. They only get loaded if the node is edited. Even then, any 'password' type property is never loaded by the editor - instead it loads some special meta data the editor can use to know if the password property is set or not.

Can you explain a bit more what you're trying to do here?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 September 2021 08:13 UTC](https://discourse.nodered.org/t/node-red-credential-value-coming-as-empty-string-in-node-details/48117/3 "2021-09-05T08:13:08Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
