jovo-plugin-auth
TypeScript icon, indicating that this package has built-in type declarations

3.6.1 • Public • Published

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'          
    })
);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.6.10latest

Version History

VersionDownloads (Last 7 Days)Published
3.6.10
3.6.00
3.5.10
3.5.00
3.4.10
3.4.00
3.3.10
3.3.00
3.2.20
3.2.10
3.2.00
3.1.50
3.1.40
3.1.30
3.1.20
3.1.00
3.0.100
3.0.90
3.0.80
3.0.70
3.0.60
3.0.50
3.0.40
3.0.30
3.0.20
3.0.10

Package Sidebar

Install

npm i jovo-plugin-auth

Weekly Downloads

0

Version

3.6.1

License

Apache-2.0

Unpacked Size

19.3 kB

Total Files

13

Last publish

Collaborators

  • jovotech