From f8af24506bdfdbd895be293c8fd8ce061c94e7af Mon Sep 17 00:00:00 2001 From: xion Date: Thu, 3 Apr 2025 01:30:30 +0800 Subject: [PATCH] fix: update query-login getme if has token not check401 --- package.json | 2 +- src/query-login.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b556fdd..bcdf27c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/query-login", - "version": "0.0.2", + "version": "0.0.3", "description": "", "main": "dist/query-login.js", "types": "dist/query-login.d.ts", diff --git a/src/query-login.ts b/src/query-login.ts index 4af2a1e..e37c57e 100644 --- a/src/query-login.ts +++ b/src/query-login.ts @@ -266,7 +266,7 @@ export class QueryLogin { return config; }, afterResponse: async (response, ctx) => { - if (response?.code === 401 && check401) { + if (response?.code === 401 && check401 && !token) { return await that.afterCheck401ToRefreshToken(response, ctx); } return response as any;