Storing Credentials

#1

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 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.

#2

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
Made me realise my mistake.

1 Like