feat(licenses): add license management and user authentication features

- Introduced a new SQL schema for managing licenses and users, including foreign key relationships.
- Implemented API routes for license validation, activation, and OTP-based user authentication.
- Updated the license creation process to associate licenses with users and handle server IPs.
- Added support for the nanoid package to generate unique license keys.
- Refactored existing code to improve modularity and maintainability, including the separation of license and stripe-related logic into dedicated API routes.
- Enhanced error handling and logging for better debugging and user feedback.
This commit is contained in:
Mauricio Siu
2025-03-23 18:32:50 -06:00
parent 5180c785b4
commit 39e6a98179
11 changed files with 724 additions and 365 deletions

View File

@@ -1,5 +1,13 @@
{
"version": "7",
"dialect": "postgresql",
"entries": []
"entries": [
{
"idx": 0,
"version": "7",
"when": 1742773711509,
"tag": "0000_famous_vermin",
"breakpoints": true
}
]
}