adumont / tplink-cloud-api

A node.js npm module to remotely control TP-Link smartplugs (HS100, HS110) and smartbulbs (LB100, LB110, LB120, LB130) using their cloud web service (no need to be on the same wifi/lan)
https://itnerd.space
GNU General Public License v3.0
129 stars 44 forks source link

access token expiry #15

Closed jijoamt closed 4 years ago

jijoamt commented 6 years ago

Can anyone let me know the life time of tp link access token

ColinMcNeil commented 6 years ago

So far it's been about 4 months and it hasn't expired.

blaskovicz commented 5 years ago

I'm not sure what the order of events were, but after I tried to use my app lately, I got an expired token.

| Error: response error: Token expired
|     at Object.checkError (/home/node/node_modules/tplink-cloud-api/distribution/api-utils.js:5:15)
|     at TPLink.<anonymous> (/home/node/node_modules/tplink-cloud-api/distribution/tplink.js:155:37)
|     at step (/home/node/node_modules/tplink-cloud-api/distribution/tplink.js:39:23)
|     at Object.next (/home/node/node_modules/tplink-cloud-api/distribution/tplink.js:20:53)
|     at fulfilled (/home/node/node_modules/tplink-cloud-api/distribution/tplink.js:11:58)
|     at <anonymous>
|     at process._tickCallback (internal/process/next_tick.js:188:7)
adumont commented 4 years ago

I believe it's not really related to my tplink-cloud-api NPM module, but rather to the TPLink backend cloud API.