-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(permission-controller): Allow passing additional metadata during…
… requestPermissions (#4179) ## Explanation For certain use-cases, such as the SDK, it may be beneficial to be able to store additional metadata about permission requests. This PR adds a `metadata` property to the `requestPermission` options which is merged into the existing `metadata` object and ultimately stored in the `ApprovalController`. ## Changelog ### `@metamask/permission-controller` - **Added**: Allow passing additional metadata during requestPermissions ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
- Loading branch information
1 parent
8c7e1e0
commit 4e9711a
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters