JeroenVdb / homebridge-daikin-cloud

This Homebrige plugin connects to the Daikin Cloud and loads all your devices to be controled via Homebridge and Homekit.
https://www.npmjs.com/package/homebridge-daikin-cloud
Apache License 2.0
38 stars 11 forks source link

Revoked Token Error Consistently Returning #72

Closed ScraggyMcRaggy closed 1 month ago

ScraggyMcRaggy commented 2 months ago

invalid_grant (The provided authorization code or refresh token is revoked.)

This error is appearing every 1-2 days and forces a re-authentication. I can delete the auth file on local server and auth via the URL no problem, but the error returns not long after.

Likely related, I am sometimes seeing the following errors alongside the token revoke.

OPError: invalid_grant (The provided authorization code or refresh token is revoked.) at processResponse (/volume1/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13) at Client.grant (/volume1/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22) at processTicksAndRejections (node:internal/process/task_queues:95:5) at OnectaClient.#refresh (/volume1/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:74:16) at OnectaClient.#getTokenSet (/volume1/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:116:24)

I am using a Snynology NAS with 0.0.0.0 callback server (only way auth URL works for me). I have a 30 min server ping interval. App setup on Daikin side seems to be working fine. Port is set to 8585. Homebridge on 8581.

ScraggyMcRaggy commented 1 month ago

reinstalling and re-authenticating fixed this issue.