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

member function to set SetExpirationBufferSeconds needed #338

Open
carldewever560 opened this issue Jan 24, 2022 · 1 comment
Open

member function to set SetExpirationBufferSeconds needed #338

carldewever560 opened this issue Jan 24, 2022 · 1 comment

Comments

@carldewever560
Copy link

Hello,
I am using a service that has the following parameters :

  • token expiration 10 minutes
  • only possible to request a refresh token after 570 seconds
    So if I read the code correctly, using .setExpirationMinutes(10)
    and keeping the expiration_buffer_seconds like it is set by default to 60 seconds
    makes me run into trouble as I refresh my token too early.
    As a consequence it would help me to be able to set the expiration buffer to 30
    Thx
    Carl
@carldewever560 carldewever560 changed the title member function to set Service_.EXPIRATION_BUFFER_SECONDS_ needed member function to set SetExpirationBufferSeconds needed Jan 24, 2022
@erickoledadevrel
Copy link
Contributor

Have you tried setting a custom EXPIRATION_BUFFER_SECONDS_ on your service?

service.EXPIRATION_BUFFER_SECONDS_ = 30;

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

2 participants