timoschlueter / nightscout-librelink-up

Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout.
MIT License
192 stars 246 forks source link

invalid or expired jwt #33

Closed Joerg-Schoemer closed 2 years ago

Joerg-Schoemer commented 2 years ago

Hi Timo,

after the last update from llu on 2022-03-31 the jwt returned by login is rejected in the connections request. I've added a lot of logging to figure out what's going on. Here is the current log file:

2022-04-02T08:42:30.830694+00:00 app[worker.1]: [info]: renew token
2022-04-02T08:42:31.267897+00:00 app[worker.1]: [info]: responseData {"status":4,"data":{"step":{"type":"tou","componentName":"AcceptDocument","props":{"reaccept":true,"titleKey":"Common.termsOfUse","type":"tou"}},"user":{"accountType":"pat","country":"DE","uiLanguage":"de-DE"},"authTicket":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEyODVlZGU0LTBjZWYtMTFlYy1hZTQ1LTAyNDJhYzExMDAwNSIsImZpcnN0TmFtZSI6IkrDtnJnIiwibGFzdE5hbWUiOiJTY2jDtm1lciIsImNvdW50cnkiOiJERSIsInJlZ2lvbiI6ImV1Iiwicm9sZSI6InBhdGllbnQiLCJlbWFpbCI6ImpvZXJnQGpvZXJnLXNjaG9lbWVyLmRlIiwiYyI6MSwicyI6ImxsdS5pb3MiLCJleHAiOjE2NDg4OTI1NTF9.jB4HwFyxf5OpEOH94bB9R78GKb334SB1oaiGIGDZWmw","expires":1648892551,"duration":3600000}}}
2022-04-02T08:42:31.269625+00:00 app[worker.1]: [info]: Logged in to LibreLink Up
2022-04-02T08:42:31.269700+00:00 app[worker.1]: [info]: getLibreLinkUpConnection: headers: {"User-Agent":"FreeStyle LibreLink Up Nightscout Uploader","Content-Type":"application/json","version":"4.1.1","product":"llu.ios","authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEyODVlZGU0LTBjZWYtMTFlYy1hZTQ1LTAyNDJhYzExMDAwNSIsImZpcnN0TmFtZSI6IkrDtnJnIiwibGFzdE5hbWUiOiJTY2jDtm1lciIsImNvdW50cnkiOiJERSIsInJlZ2lvbiI6ImV1Iiwicm9sZSI6InBhdGllbnQiLCJlbWFpbCI6ImpvZXJnQGpvZXJnLXNjaG9lbWVyLmRlIiwiYyI6MSwicyI6ImxsdS5pb3MiLCJleHAiOjE2NDg4OTI1NTF9.jB4HwFyxf5OpEOH94bB9R78GKb334SB1oaiGIGDZWmw"}
2022-04-02T08:42:31.578051+00:00 app[worker.1]: [error]: {"message":"invalid or expired jwt"}

Any ideas?

Kind regards Jörg

cubybox commented 2 years ago

same here:

image

LibreLinkup still working with the same credentials.

timoschlueter commented 2 years ago

Are you able to log into the app with the same credentials? I have not experienced the same problem yet, but I will look into it!

cubybox commented 2 years ago

yes. Login into the app with the same credentials works fine.

IMG_B3C0BF78D277-1 2

Joerg-Schoemer commented 2 years ago

Yes, llu App still works. Are you able to sniff the traffic of the app?

timoschlueter commented 2 years ago

Yes, i can check the traffic as soon as I am back at my desk. Unfortunately I won’t be home until tomorrow evening. :/

cubybox commented 2 years ago

no problem. There was a life before your ingenious tool. I'll just use it again until the problem is solved ;-)

Joerg-Schoemer commented 2 years ago

May be abbott had a bug and fixed it. The old request sequence is back in life.

cubybox commented 2 years ago

For me it still not working. EDIT: with a new Follower-Account it is now working again. for whatever reason ;-)