Skip to content

Automate browser based workflows with AI

389 B
Raw Blame
export function validateBitwardenLoginCredential(
  collectionId: string | null,
  itemId: string | null,
  urlParameterKey: string | null,
): string | null {
  if (!collectionId && !itemId) {
    return "Collection ID or Item ID is required";
  }
  if (collectionId && !itemId && !urlParameterKey) {
    return "URL Input Key is required when collection ID is used";
  }
  return null;
}