open-index/open-npm huggingface dataset:
npm package: @informationdevelopment/auth0-serverless
Description: Auth0 authentication for serverless functions
Author: Information Development, Inc.
Latest version: 0.1.2
Deprecated: This package is no longer maintained and should not be used.

# auth0-serverless
Auth0 authentication for serverless functions.

### Installation
auth0-serverless can be installed with NPM:

```bash
npm install @informationdevelopment/auth0-serverless
```

### Usage
```javascript
const auth0 = require('@informationdevelopment/auth0-serverless');

const client = auth0.createClient(
    'example.auth0.com',                    // App domain
    'https://example.azurewebsites.net/api' // API identifier (audience)
);

module.exports = client.authorize('read:movies', async (context, req) => {
    return db.getMovies();
});
```
npm package: @informationdevelopment/azure-functions-auth0
Description: Auth0 authentication middleware for Azure Functions
Author: Information Development, Inc.
Latest version: 1.0.3
Deprecated: This package has been replaced with @informationdevelopment/auth0-serverless and is no longer maintained.

# azure-functions-auth0
Auth0 authentication middleware for Azure Functions.

### Installation
azure-functions-auth0 can be installed with NPM:

```bash
npm install @informationdevelopment/azure-functions-auth0
```

### Usage
```javascript
const azureFunctionsAuth0 = require('@informationdevelopment/azure-functions-auth0');

const auth = azureFunctionsAuth0.createMiddleware(
    'example.auth0.com',                    // App domain
    'https://example.azurewebsites.net/api' // API identifier (audience)
);

module.exports = auth('read:movies', async (context, req) => {
    return db.getMovies();
});
```