-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[msal-node] Cache-5: Msal node cache additional changes for end-to-end cache to work #1522
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
Conversation
…l generation code
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.
Overall looks good.
* @param key | ||
* @param value |
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.
nit: getSerializedCache() doesn't have parameters.
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.
Intentional. It is a getter to avoid access to private variables.
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 should remove the comments here.
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, I think we need 1 more PR to bring msal-browser up-to-date with these changes before we merge to dev.
This is the final PR in the series of cache PRs and works end-to-end, reads a
json
file from the disk, retrieves tokens from the server and appends the newly minted ones to thejson
file in the disk.Notable changes:
NodeStorage
update for read/write from the cacheNote: Most of the diff for this PR is
linter
diff; will be trying to minimize this soon by updating thetsdx
lint rules to not cause so much disruption for line length which accounts to most changes.