From ed9002f436bbeb0f5d4c34b68982a52ab9beda0c Mon Sep 17 00:00:00 2001 From: Juan Diego Moreno Upegui Date: Wed, 15 Oct 2025 15:34:16 -0500 Subject: [PATCH] feat: make password optional for session restoration --- src/client.ts | 2 +- types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index a557ecf..fd67391 100644 --- a/src/client.ts +++ b/src/client.ts @@ -71,7 +71,7 @@ export class TrytonClient { this.database = database; this.username = username; - this.password = password; + this.password = password || ""; // Empty string if not provided this.port = port; this.language = language; this.options = options; diff --git a/types.ts b/types.ts index 6069447..b311068 100644 --- a/types.ts +++ b/types.ts @@ -16,7 +16,7 @@ export interface TrytonClientConfig { hostname: string; database: string; username: string; - password: string; + password?: string; // Optional - no necesario para restaurar sesión port?: number; language?: string; options?: TrytonClientOptions;