Token Cache not updates correctly
jdneo opened this issue · 4 comments
jdneo commented
The code here:
is usingisEqual
to check if two token entries are equal or not. But sometimes, addElement
is just an update of element
, (All the fields are equal except the expiresOn
)
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 cause More than one token matches the criteria. The result is ambiguous
error.
Here:
jdneo commented
Looks good. Thanks
navyasric commented
Closing as this seems to be resolved.