-
Notifications
You must be signed in to change notification settings - Fork 130
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
hasValidCredentials base on refreshToken to check the token validity #643
Comments
As stated here, if a user has a valid |
@jmbreleurTL Thanks a lot for the detailed report. As @lucanicoletti mentioned with refreshToken, you wouldn't be requiring the expiry of an access token. I am curious what scenario raises this particular requirement? |
Hi @jmbreleurTL we are closing this issue now. Please feel free to comment here and we can reopen it. |
Describe the problem you'd like to have solved
Hello,
I'm using CredentialsManager to store and check the credentials stored validity by using
hasValidCredentials()
.As I understand it, hasValidCredentials base on 2/3 criteria to determine if the credentials are valid :
In case we still have
refreshToken
stored,hasValidCredentials()
will still return true even though the credential, based onexpiresAt
, has already expired for some time.So I'm a bit confusing when I'm creating a test :
to have
hasValidCredentials()
returningtrue
whereasexpiresAt
has a date in a past.Describe the ideal solution
Please provide a way to give access to a method that doesn't take
refreshToken
as a strong criteria to check the token validity.Alternatives and current work-arounds
Not using
getCredentials()
and not storerefreshToken
.Additional information, if any
A recent comment related to this:
#614 (comment)
Thank you in advance 🙌🏽
The text was updated successfully, but these errors were encountered: