Skip to main content

Getting Started

  1. Install the package:
    pip install python-json-rbac
  2. Add a .env file:
    JWT_SECRET=your_super_secret_key
    JWT_ALGORITHM=HS256
    JWT_EXPIRE_MINUTES=30
  3. Create a FastAPI app and secure endpoints with RBAC decorators.

See Configuration for all options.