License Activation
Overview
License activation is a simple process that should be performed as early as possible in your application's lifecycle, before using any other OSI features.
Activation Process
Call the setLicense function at the start of your application:
import { setLicense } from 'osi.onpremises';
// Call this as early as possible in your application
setLicense('your-license-key');
Important Notes
- Always call
setLicensebefore using any other OSI features - Ensure the license key is valid and properly formatted