androidtv-remote
androidtv-remote copied to clipboard
How to save the auth token to keep connected?
How to save the auth token to keep connected, because after just several minutes it requires us to pair again, and we need to put the code again. I saw some apps get connected without having to put the code again, but don't know how they can do that.
I simply used: `import AppStorage from 'appstoragejs'; var store = new AppStorage('cert.json');
...
let options = { pairing_port : 6467, remote_port : 6466, name : 'androidtv-remote', cert: store.cert }
... androidRemote.on('ready', async () => { store.cert = androidRemote.getCertificate(); `