skydiver / ewelink-api

eWeLink API for JavaScript
https://www.npmjs.com/package/ewelink-api
MIT License
264 stars 108 forks source link

Refresh Token #180

Open ianmaciel opened 2 years ago

ianmaciel commented 2 years ago

Frist of all, thank you for this implementation.

I am porting this library to Dart/Flutter and trying to understand how to renew the access token. I noticed that we have the "refresh token" available on auth object auth.rt, but I couldn't find any information about how to use it and exchange for a new access token.

TLDR: Does anyone know how exchange the refresh token (auth.rt) for a new access token (auth.at)?