This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Token Cache not updates correctly #197
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The code here:
azure-activedirectory-library-for-nodejs/lib/memory-cache.js
Line 63 in 2badd7c
isEqual
to check if two token entries are equal or not. But sometimes,addElement
is just an update ofelement
, (All the fields are equal except theexpiresOn
)For example:
Then, after
add
method, the token cache will have two tokens which are duplicated.After that, when we trigger
find
for the token cache, it will causeMore than one token matches the criteria. The result is ambiguous
error.Here:
azure-activedirectory-library-for-nodejs/lib/cache-driver.js
Line 223 in 9aa5672
The text was updated successfully, but these errors were encountered: