diff --git a/src/index.ts b/src/index.ts index 1cc62f0..52c468a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -316,7 +316,7 @@ export class MediaWikiApi { [data?.errors?.[0].code, data?.error?.code].includes('badtoken') || ['NeedToken', 'WrongToken'].includes(data?.login?.result) ) { - return this.postWithToken(tokenType, ...body, { + return this.postWithToken(tokenType, body, { tokenName, retry: retry - 1, noCache: true,