From 36abe2bffd91d5cb1b707f0a512a709616d50f4f Mon Sep 17 00:00:00 2001 From: Jonathan Duke Date: Thu, 18 Dec 2025 13:10:38 -0600 Subject: [PATCH] add ApiOptions to login method --- src/wikitree_api.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wikitree_api.ts b/src/wikitree_api.ts index 574bbb0..ad50c73 100644 --- a/src/wikitree_api.ts +++ b/src/wikitree_api.ts @@ -315,10 +315,11 @@ export async function clientLogin( */ export async function login( email: string, - password: string + password: string, + options?: ApiOptions ): Promise { - const authcode = await getAuthcode(email, password); - return { cookies: await getAuthCookies(authcode) }; + const authcode = await getAuthcode(email, password, options); + return { cookies: await getAuthCookies(authcode, options) }; } async function getAuthcode(