@hackage / servant-auth-wordpress

Authenticate Routes Using Wordpress Cookies

Latest1.0.0.2

About

Metadata

  • Last updated , by lysergia
  • License BSD-3-Clause
  • Categories Web Development
  • Maintained by: pavan.rikhi@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

servant-auth-wordpress

This package provides a Servant AuthHandler that validates Wordpress's @LOGGED_IN@ authentication Cookie & the @wp_rest@ Nonce, returning either an Authorized user with data or an Anonymous user, or calling an error handler.

This allows you to access the currently logged in User when making AJAX requests from a Wordpress site.

Check out the @wordpress-auth@ package for lower-level Wordpress Cookie & Nonce manipulation.

License

BSD 3-clause, exceptions possible.