
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@metamask/gator-permissions-controller
Advanced tools
Controller for managing gator permissions with profile sync integration
@metamask/gator-permissions-controllerA dedicated controller for reading gator permissions from profile sync storage. This controller fetches data from the encrypted user storage database and caches it locally, providing fast access to permissions across devices while maintaining privacy through client-side encryption.
yarn add @metamask/gator-permissions-controller
or
npm install @metamask/gator-permissions-controller
import { GatorPermissionsController } from '@metamask/gator-permissions-controller';
// Create the controller with required config
const gatorPermissionsController = new GatorPermissionsController({
messenger: yourMessenger,
config: {
supportedPermissionTypes: [
'native-token-stream',
'native-token-periodic',
'erc20-token-stream',
'erc20-token-periodic',
'erc20-token-revocation',
],
// Optional: override the default gator permissions provider Snap id
// gatorPermissionsProviderSnapId: 'npm:@metamask/gator-permissions-snap',
},
});
// Fetch all permissions
const permissions =
await gatorPermissionsController.fetchAndUpdateGatorPermissions();
// Fetch permissions and update internal state
const permissions =
await gatorPermissionsController.fetchAndUpdateGatorPermissions();
This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.
FAQs
Controller for managing gator permissions with profile sync integration
We found that @metamask/gator-permissions-controller demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.