Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

Add ability to create new access key and device from username/password #16

Closed skylord123 closed 2 years ago

skylord123 commented 2 years ago

Node-RED has functions for getting and updating credentials so we could use that to automatically get access key and device ID for a new account using just the username and password.

RED.nodes.addCredentials(id,credentials)
RED.nodes.getCredentials(id)
RED.nodes.deleteCredentials(id)
skylord123 commented 2 years ago

I just found the option to create an API on Node-RED so that we can get this information within the UI for the user. This way they can fill in their username and password, it will send an API request to Node-RED, we can then do the logging in and return the access key and device id.

skylord123 commented 2 years ago

This was done.