foyoux / aligo

🔥简单、易用、可扩展的阿里云盘 API 接口库🚀
GNU General Public License v3.0
849 stars 156 forks source link

Detect and raise error on expired share token #57

Closed JingMatrix closed 1 year ago

JingMatrix commented 1 year ago

新功能请求

The expire time for share tokens is 7200s. But in reality, it always expires around 40 mins insead of a whole one hour.

And in aligo, once token expired, there is no way to know it and the progam just halt but the process doesn't exit.

Please add a way to detect a POST with expired share token and rasie correspoding error. Please note that the expire_in propertiy in a share_token is not reliable as explained above!

JingMatrix commented 1 year ago

Now I understand, the expired time is in fact 20mins, then it is reasonable.