JSPM

  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q60059F
  • License MIT

Masquerade user for Payload CMS

Package Exports

  • payload-plugin-masquerade
  • payload-plugin-masquerade/types
  • payload-plugin-masquerade/ui

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)

Masquerade

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:

  1. Clone the project.
  2. pnpm install
  3. Add .env file in dev folder to start payload project
  4. pnpm dev

License

The MIT License (MIT). Please see License File for more information.

Credits