1.0.1 • Published 7 months ago
@abhiram6039/medusa-admin-impersonation v1.0.1
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-impersonationConfiguration
- Add the plugin to your
medusa-config.js:
module.exports = {
plugins: [
// ... other plugins
{
resolve: "medusa-admin-impersonation",
options: {}
}
]
}- Rebuild your admin:
npm run build adminUsage
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 buildContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
1.0.1
7 months ago