mirror of
https://github.com/expo/node-vault.git
synced 2026-11-27 16:45:28 -10:00
16 lines
269 B
JavaScript
16 lines
269 B
JavaScript
// file: example/auth.js
|
|
|
|
process.env.DEBUG = 'node-vault'; // switch on debug mode
|
|
|
|
const vault = require('./../src/index')();
|
|
|
|
const options = {
|
|
requestOptions: {
|
|
followAllRedirects: true,
|
|
},
|
|
};
|
|
|
|
vault.auths(options)
|
|
.then(console.log)
|
|
.catch(console.error);
|