From 552b70a9ef2e088afeb0e5415130866566ebaacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=B5=B7?= Date: Mon, 25 Dec 2023 02:21:23 +0800 Subject: [PATCH] feat: logintoken retry --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c470234..349b423 100644 --- a/src/index.ts +++ b/src/index.ts @@ -227,7 +227,7 @@ export class MediaWikiApi { lgname: string, lgpassword: string, params?: MwApiParams, - postOptions?: { retry?: number; noCache?: boolean } + postOptions?: { retry?: number; noCache?: boolean, tokenRetry?: number } ): Promise<{ result: 'Success' | 'NeedToken' | 'WrongToken' | 'Failed' token?: string