[msal-node-extensions] Introducing KeyRingPersistence which uses @napi-rs/keyring and provides cross platform secure store operations #7497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to the
msal-node-extensions
package, focusing on updating dependencies, improving platform support, and deprecating old persistence classes in favor of a new implementation. The most important changes include the introduction ofKeyRingPersistence
, updates to therollup.config.js
file, and modifications to the documentation to reflect these changes.New Persistence Implementation:
KeyRingPersistence
class to handle secure storage across multiple platforms using the@napi-rs/keyring
library. This class replaces the need for platform-specific persistence classes.Dependency Updates:
package.json
to replace thekeytar
dependency with@napi-rs/keyring
and added@rollup/plugin-commonjs
.Build Configuration:
rollup.config.js
to include@rollup/plugin-commonjs
and exclude native dependencies from the bundle. [1] [2] [3] [4] [5]Deprecation of Old Classes:
KeychainPersistence
andLibSecretPersistence
classes in favor of the newKeyRingPersistence
class. [1] [2]Documentation Updates:
msal-node-extensions.md
to reflect the newKeyRingPersistence
class and removed the old platform-specific persistence examples. [1] [2]