-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[msal-node] Cache Lookup - 3: Msal node cache response #1680
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
[msal-node] Cache Lookup - 3: Msal node cache response #1680
Conversation
}; | ||
|
||
constructor() { | ||
this.cachePath = ""; | ||
this.cachePath = ''; |
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.
Do we need cachePath anymore?
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.
We don't if we have keyTar working as path is calculated. Also I think Daryl's PR makes this unnecessary. I can pull dev and change this.
lib/msal-node/src/cache/Storage.ts
Outdated
private inMemoryCache: InMemoryCache; | ||
|
||
constructor(cacheConfig: CacheOptions) { | ||
this.cacheConfig = cacheConfig; | ||
if (this.cacheConfig.cacheLocation! === "fileCache") | ||
if (this.cacheConfig.cacheLocation! === 'fileCache') |
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.
Temporary?
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.
Indication we are using application cache by the user: extension or otherwise instead of just inMemoryCache
. Ideas welcome.
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.
Looks ok, would like to see tests for these changes if applicable.
This PR updates
ResponseHandler.ts
, introducesCacheRecord
.