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 the case where the user's email requires verification #29

Closed robberwick closed 1 week ago

robberwick commented 1 week ago

This pull request adds support for the login response which indicates that the user's email address requires verification. It introduces a new base exception class PyLibreLinkUpError and refactors existing exceptions to inherit from it. Additionally, a new exception EmailVerificationError is added to handle email verification errors. Corresponding changes are made to the authentication logic and tests to accommodate this new exception.

Refactoring and New Exception:

Authentication Logic Update:

Test Enhancements: