1.0.0 • Published 7 years ago

wp-keys v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

wp-keys

Get the authentication unique keys from the WordPress.org secret-key service

Installation

> npm install https://github.com/dkfiresky-wp/wp-keys.git

Usage

const wpkeys = require( 'wp-keys' );

wpkeys( ( error, keys ) => {
  if ( null !== error) throw error;

  console.log( keys );
} );

Will output following:

define('AUTH_KEY',         '...');
define('SECURE_AUTH_KEY',  '...');
define('LOGGED_IN_KEY',    '...');
define('NONCE_KEY',        '...');
define('AUTH_SALT',        '...');
define('SECURE_AUTH_SALT', '...');
define('LOGGED_IN_SALT',   '...');
define('NONCE_SALT',       '...');

Actual keys are replaced with the ... sign.