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 likeconnectToUpdateContentFile
to listen for events (e.g.,content:update
). Ensure yourUlda
instance 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
dev
parameter in the Ulda constructor?
A: Thedev: boolean
parameter enables debugging mode for development, providing additional logs. Set it tofalse
or 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.