wp-keys
v1.0.0
Published
Get secret keys from https://api.wordpress.org/secret-key/1.1/salt/
Downloads
6
Readme
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.