Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Code used for a tutorial on how to build a plugin which extends Payload with one-time password functionality

Notifications You must be signed in to change notification settings

payloadcms/plugin-otp

Open more actions menu

Repository files navigation

Payload One-time Password Plugin Tutorial

This repository demonstrates how to build a well-structured and advanced plugin that allows for one-time login. It showcases how to do many things:

  • Build a bulletproof Payload plugin structure that follows best practices
  • Promote plugin type safety and add developer-friendly JSDocs to the plugin options
  • Add new operations, surfaced via local API functions, REST endpoints, and GraphQL mutations
  • Extend Payload authentication while reusing existing functionality
  • Build an pattern into a plugin for extending its internal logic further, following familiar Payload practices
  • Properly export plugin utilities in case developers want to re-use them in their own code
  • Build and publish an NPM package
  • Set up an integration test suite that ensures the plugin has great test coverage
  • Set up E2E tests that show how to test admin-specific functionality added to Payload

About

Code used for a tutorial on how to build a plugin which extends Payload with one-time password functionality

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.