# Storing Credentials

**URL:** https://discourse.nodered.org/t/storing-credentials/2130
**Category:** Developing Nodes
**Created:** [7 August 2018 04:14 UTC](https://discourse.nodered.org/t/storing-credentials/2130 "2018-08-07T04:14:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Coderkido](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/coderkido/32/853_2.png) [@Coderkido](https://discourse.nodered.org/u/Coderkido)
#### Post date: [7 August 2018 04:14 UTC](https://discourse.nodered.org/t/storing-credentials/2130/1 "2018-08-07T04:14:25Z")

</div>

First time making my own nodes.

Node is intended to build and make simple requests to a device which hosts a restful api.

I am having issues in getting the config node which stores the credentials to actually keep them there.

The fields both go blank after I leave the config window.

I have used this [https://nodered.org/docs/creating-nodes/credentials](https://nodered.org/docs/creating-nodes/credentials) and have been looking at how the MQTT node stores its server properties.

For reference, everything else (Server, port) is saved but username/password is not.

I feel like I am missing something very simple but just can't work out what.

---

<div class="post-metadata">

### Author: ![Coderkido](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/coderkido/32/853_2.png) [@Coderkido](https://discourse.nodered.org/u/Coderkido)
#### Post date: [7 August 2018 05:44 UTC](https://discourse.nodered.org/t/storing-credentials/2130/2 "2018-08-07T05:44:02Z")

</div>

SOLVED:  
Turns out I had missed "config" in the ID's for the input (IE: node-config-input-username/password). Only changed it for the label --\_\_--

Watching this : [https://www.coursera.org/lecture/developer-nodered/additional-node-configuration-options-aSFau](https://www.coursera.org/lecture/developer-nodered/additional-node-configuration-options-aSFau)  
Made me realise my mistake.
