robberwick / pylibrelinkup

`pylibrelinkup` is a Python client for the LibreLinkUp API, which allows you to interact with the LibreLinkUp service to retrieve glucose data and other related information. This project is a Python implementation inspired by the [libre-link-up-api-client](https://github.com/DiaKEM/libre-link-up-api-client) project.
MIT License
2 stars 0 forks source link

Handle requirement to accept Terms of Use #12

Closed robberwick closed 1 month ago

robberwick commented 1 month ago

When the API requires that terms of use need to be accepted, the client currently raises an AuthenticationError, which isn't helpful.

The unofficial API docs suggest that the endpoint to hit to accept these terms is {API_DOMAIN}/auth/continue/tou which does not seem to work and returns a 404.

In the meantime, the client should handle the situation more gracefully, and assist the user by suggesting the workaround of logging out of the mobile application and logging back in. This will allow them to accept those terms and restore normal operation.