Skip to main content

Using pairing code flows

The pairing server is only available in develoment mode for now. It is started together with the application using the npm start command. The difference here it is running on port 3100 The authentication server uses lowdb internally to storage all the changes, so when you use it, a new file will be created in your root path of the project. This file is inlcuded in the gitignore file so it will not be in the repository. This file contains the information of your users and paired devices. When you pair a device to an user the paired property will be set to true "paired": true. Therefore, if you want to pair the device again, first you will need to remove the db.json file and restart the server.

Important to know: to use this server, the application in dev mode, is using a proxy which redirects all the request starting with auth/ to this server instance.