License
Last updated
Last updated
Use this template if you want your extension to support licenses. It has support for licenses from Lemonsqueezy
and Gumroad
.
This will get the license component and license-server. Copy the license directory into your react project.
License
component Props
Name | Description |
---|---|
Create a .env
file in your react project where you will be using this license component and add the following to it
VITE_LICENSE_URL_DOMAIN
- URL of license server
VITE_LICENSE_PROVIDER
- lemon_squeezy
or gumroad
.
The provided license server is a nextjs app. If required you can re-create the same in any language/framework.
Check https://github.com/ChromeKit-Org/cli/blob/main/assets/license-server/README.md for more details (Available only to purchased users)
licenseError
Error message to show when the user is shown this component.
licenseAddedSuccessfully
Function to be called once the license has been successfully validated and stored.