I tried to find something about this in the documentation and the source code (so I apologise if I missed something), but it would be useful to have a method for testing whether the token has expired, and also update the token if needed.
I tried to use the ping endpoint of the sea file api, but it seems like It does not require a valid token.
Other ideas or suggestions for best practices are also appreciated.