JohanDegraeve / xdripswift

xdrip for iOS, written in Swift
GNU General Public License v3.0
316 stars 310 forks source link

Add `Account-Id` HTTP header (patientId’s SHA256) required by LLU 4.11 #549

Closed gui-dos closed 1 week ago

gui-dos commented 1 week ago

If you set “4.11.0” as the LibreLinkUp version in the Developer Settings, you receive the reply {“message":"RequiredHeaderMissing”} (status 400) since the recent update of the last week requires a new Account-Id HTTP header and you have to pass the SHA256 digest of the patientId as a 64-char hexadecimal string.

gui-dos commented 1 week ago

I only tested with my own account (I am following myself) but it is more logical that you have to send the digest of the user ID of the follower account, not the patientId one...

I am going to refactor a little bit, sorry.