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 like connectToUpdateContentFile to listen for events (e.g., content:update). Ensure your Ulda instance is initialized with the correct apiUrl (default: https://api.0am.ch).

  • Q: Can I change a master file's password?
    A: Yes, use the changeMasterFilePassword(newPassword: string) method. You'll need to reconnect with the new password afterward.

  • Q: What is the dev parameter in the Ulda constructor?
    A: The dev: boolean parameter enables debugging mode for development, providing additional logs. Set it to false 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.

FAQ