payload-plugin-masquerade
v0.2.3
Published
Masquerade user for Payload CMS
Downloads
367
Maintainers
Readme
Payload plugin Masquerade
The Masquerade module allows to switch users and surf the site as that user (no password required). That person can switch back to their own user account at any time.
Two links to switch user (Masquerade) and go back (Unmasquerade)
Features
- ✅ Compatible with Payload v3 beta.102
- ✨ Zero dependencies
- ⚙ Highly customizable
Installation
npm install payload-plugin-masquerade
yarn install payload-plugin-masquerade
Example Usage
Integrating to users
collection.
export default buildConfig({
// ...
plugins: [
MasqueradePlugin({
enabled: true,
}),
],
// ...
});
Contributing
Contributions and feedback are very welcome.
To get it running:
- Clone the project.
pnpm install
- Add .env file in dev folder to start payload project
pnpm dev
License
The MIT License (MIT). Please see License File for more information.
Credits
- This package was inspired by a drupal module Masquerade
- This plugin template was inspired by payload-enchants