web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

error.ts (434B)


      1 export const cl_cipher_error = {
      2     idb_undefined: "error.client.cipher.idb_undefined",
      3     crypto_undefined: "error.client.cipher.crypto_undefined",
      4     invalid_ciphertext: "error.client.cipher.invalid_ciphertext",
      5     decrypt_failure: "error.client.cipher.decrypt_failure"
      6 } as const;
      7 
      8 export type ClientCipherError = keyof typeof cl_cipher_error;
      9 export type ClientCipherErrorMessage = (typeof cl_cipher_error)[ClientCipherError];