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 email verification response when logging in #28

Closed robberwick closed 1 week ago

robberwick commented 1 week ago

When first registering, the user will be sent an email containing a link that must be clicked in order to validate the email address and activate the account.

if the user attempts to log in using their registered credentials before validating the email address, then they will receive a response similar to that below:

{
  "status": 4,
  "data": {
    "step": {
      "type": "verifyEmail",
      "componentName": "VerifyEmail",
      "props": {
        "email": "`<EMAIL_ADDRESS>`"
      }
    },
    "user": {
      "accountType": "pat",
      "country": "GB",
      "uiLanguage": "en-GB"
    },
    "authTicket": {
      "token": "`<TOKEN>`",
      "expires": 1730629982,
      "duration": 3600000
    }
  }
}

this response should be handled correctly, and the feedback should instruct the user to follow the instructions in the activation email.

robberwick commented 1 week ago

closed by #29