Socket
Book a DemoInstallSign in
Socket

@metamask/gator-permissions-controller

Package Overview
Dependencies
Maintainers
9
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/gator-permissions-controller

Controller for managing gator permissions with profile sync integration

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
21K
3827.44%
Maintainers
9
Weekly downloads
 
Created
Source

@metamask/gator-permissions-controller

A 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.

Installation

yarn add @metamask/gator-permissions-controller

or

npm install @metamask/gator-permissions-controller

Usage

Basic Setup

import { GatorPermissionsController } from '@metamask/gator-permissions-controller';

// Create the controller
const gatorPermissionsController = new GatorPermissionsController({
  messenger: yourMessenger,
});

// Enable the feature (requires authentication)
gatorPermissionsController.enableGatorPermissions();

Fetch from Profile Sync

const permissions =
  await gatorPermissionsController.fetchAndUpdateGatorPermissions();

Contributing

This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.

Keywords

MetaMask

FAQs

Package last updated on 04 Sep 2025

Did you know?

Socket

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.

Install

Related posts