Hi
It’s my first time creating an app and I have a question.
When using the login window, I’d like to store the login credentials in the (homey)settings.
But I don’t know how, I’ve tried already to add these fields (username and password) in the driver.compose file.
"settings": [
{
"id": "username",
"type": "text",
"label": {
"en": "WEN username"
}
},
{
"id": "password",
"type": "password",
"label": {
"en": "WEM password"
}
}
]
The SDK has a settings section but I’m not getting there.
This was my try on storing the credentials but that did not work out
this.homey.settings.setSettings(username, data.username);
this.homey.settings.setSettings(password, data.password);
The error that I’m getting is TypeError: this.homey.settings.setSettings is not a function
Any suggestions here?