-
Notifications
You must be signed in to change notification settings - Fork 13
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
Issue #35 #36
Conversation
if (securedRefreshToken == null) { | ||
developer.log('No refresh token found.', name: 'keycloak_wrapper'); | ||
_streamController.add(false); | ||
} else if (JWT.decode(securedRefreshToken).isExpired) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to optionally check if the token will expire soon and only refresh if it has expired or will expire in a given timespan?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I'm wrong.
You want a method to check either the token will expired in a given timespan/duration?
For example, you want to know if the token will expired in the next 1 hour. Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, more like refreshTokenIfExpiresIn(Duration)
. Where the plugin refreshes the token if it will expire in the given time span or just ignore the request.
But I can easily check the expiry myself , don't worry about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply.
Yeah, it is possible but can u open a new issue for that particular feature so I can keep track of it?
I know that you have already merged and released this, but I wanted to thank you for adding this feature so fast. 🙏 ❤️ |
No description provided.