Overview
Below are frequently asked questions about using the ULDA library for secure data management.
-
Q: How do I obtain an API key for ULDA?
A: Visit the 0 AM Admin Portal, sign in or create an account, and generate an API key in the API Keys section. Store it securely in environment variables. -
Q: Why must master and content file names be unique?
A: Master file names must be unique within an API key to prevent conflicts. Content file names must be unique within a master file to ensure proper organization and access. -
Q: How do I set up real-time updates with WebSockets?
A: Use methods likeconnectToUpdateContentFileto listen for events (e.g.,content:update). Ensure yourUldainstance is initialized with the correctapiUrl(default:https://api.0am.ch). -
Q: Can I change a master file's password?
A: Yes, use thechangeMasterFilePassword(newPassword: string)method. You'll need to reconnect with the new password afterward. -
Q: What is the
devparameter in the Ulda constructor?
A: Thedev: booleanparameter enables debugging mode for development, providing additional logs. Set it tofalseor omit it in production. -
Q: What data is stored in content files?
A: Content files store user-defined JSON data (e.g.,{ username: 'Bob', email: 'bob@example.com' }), encrypted client-side with AES-CBC.