Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse auth_cookie instead of relogin #8

Closed
sbc2280 opened this issue Jun 30, 2023 · 4 comments
Closed

Reuse auth_cookie instead of relogin #8

sbc2280 opened this issue Jun 30, 2023 · 4 comments

Comments

@sbc2280
Copy link

sbc2280 commented Jun 30, 2023

Will the reuse of auth_cookie be more efficient than repeated logins? Looks like the cookie has an hour lifetime and getting refreshed on use.

@ondrej1024
Copy link
Owner

I don't know but you could try this and check if it works.

@anguriskit24
Copy link

I am exploring this idea on the java client here: benceszasz/CareLinkJavaClient#4

Started by saving cookies to file system. Then looking at how nightscout uses this:
var CARELINKEU_REFRESH_TOKEN_URL = 'https://' + carelinkServerAddress + '/patient/sso/reauth';

@ondrej1024
Copy link
Owner

Closing this issue as the token refresh procedure is now implemented. Saving of the tokens to permanent storage will be done together with the implementation of the new Carelink Connect app API.

@ondrej1024
Copy link
Owner

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants