@blockflow-labs/auth0-user-service
v1.0.3
Published
This package provides a service for managing Auth0 users.
Downloads
12
Readme
Blockflow Auth0 User Service
This package provides a service for managing Auth0 users.
Installation
npm install @blockflow-labs/auth0-user-service
Usage
Import and initialize the BFUser service with your Auth0 credentials:
import { BFUser } from "@blockflow-labs/auth0-user-service";
const bfUser = new BFUser(
process.env.AUTH0_DOMAIN,
process.env.AUTH0_CLIENT_ID,
process.env.AUTH0_CLIENT_SECRET,
process.env.AUTH0_AUDIENCE,
process.env.AUTH0_M2M_AUDIENCE
);
Environment Variables
Ensure you have the following environment variables set in your environment:
AUTH0_DOMAIN=your-auth0-domain
AUTH0_CLIENT_ID=your-auth0-client-id
AUTH0_CLIENT_SECRET=your-auth0-client-secret
AUTH0_AUDIENCE=your-auth0-audience
AUTH0_M2M_AUDIENCE=your-auth0-m2m-audience