3.6.1 • Published 2 years ago
jovo-plugin-auth v3.6.1
Jovo Auth Integration
Installation
npm install --save jovo-plugin-auth
Usage in the app:
const { ApiKey } = require('jovo-plugin-auth');
app.use(
new ApiKey({
'x-api-key': 'foobar'
})
);
There are two ways to pass the key to the app:
Via header object:
{
'x-api-key': 'foobar'
}
Via query param:
https://endpoint.example.com/user?x-api-key=foobar
Customization
If you want to pass your custom api key variable name, use customKeyName
and customKeyValue
const { ApiKey } = require('jovo-plugin-auth');
app.use(
new ApiKey({
'customKeyName': 'apiKey'
'customKeyValue': 'foobar'
})
);
3.6.1
2 years ago
3.6.0
2 years ago
3.5.1
3 years ago
3.5.0
3 years ago
3.4.1
3 years ago
3.4.0
3 years ago
3.3.1
3 years ago
3.3.0
3 years ago
3.2.2
3 years ago
3.2.1
3 years ago
3.2.0
4 years ago
3.1.5
4 years ago
3.1.4
4 years ago
3.1.3
4 years ago
3.1.2
4 years ago
3.1.0
4 years ago
3.0.10
4 years ago
3.0.9
4 years ago
3.0.8
4 years ago
3.0.7
4 years ago
3.0.6
4 years ago
3.0.5
4 years ago
3.0.4
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago