Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

652 B
Raw Blame
export function createInvalidSignatureError() {
  return Object.assign(new Error('[Papra Webhooks] Invalid signature'), {
    code: 'webhook.invalid_signature',
  });
}

export function createUnsupportedSignatureVersionError() {
  return Object.assign(
    new Error('[Papra Webhooks] Unsupported signature version, supported versions are "v1"'),
    {
      code: 'webhook.unsupported_signature_version',
    },
  );
}

export function createInvalidSignatureFormatError() {
  return Object.assign(
    new Error('[Papra Webhooks] Invalid signature format, unprocessable signature'),
    {
      code: 'webhook.invalid_signature_format',
    },
  );
}