1.0.1 • Published 7 months ago

@abhiram6039/medusa-admin-impersonation v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Medusa Admin Impersonation Plugin

A lightweight Medusa plugin that adds user impersonation functionality to your admin panel, allowing administrators to troubleshoot and support users effectively.

Features

  • Admin Impersonation:
    • Seamlessly impersonate users for support and troubleshooting
    • Clear visual indicator when in impersonation mode
    • One-click exit from impersonation
    • Secure impersonation management

Installation

npm install medusa-admin-impersonation

Configuration

  1. Add the plugin to your medusa-config.js:
module.exports = {
  plugins: [
    // ... other plugins
    {
      resolve: "medusa-admin-impersonation",
      options: {}
    }
  ]
}
  1. Rebuild your admin:
npm run build admin

Usage

Once installed, the plugin will automatically add an impersonation banner to your admin panel when an admin is impersonating another user.

The banner includes:

  • Clear indication of which user is being impersonated
  • A "Remove Impersonation" button to exit impersonation mode
  • Visual styling that makes it obvious when impersonation is active

Development

# Install dependencies
npm install

# Build the plugin
npm run build

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT