fix(client): shit apiVersion everywhere
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit was merged in pull request #10.
This commit is contained in:
2026-02-05 19:19:48 +08:00
committed by Asai Neko
parent 2c22c0ec5c
commit 7afc6ec25e
7 changed files with 17 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import type { ServiceAuthTokenResponse } from '@/client';
import { toast } from 'sonner';
import { postAuthRefresh } from '@/client';
import { ver } from './apiVersion';
import { router } from './router';
const ACCESS_TOKEN_LOCALSTORAGE_KEY = 'token';
@@ -40,6 +41,7 @@ export async function doRefreshToken(refreshToken: string): Promise<ServiceAuthT
body: {
refresh_token: refreshToken,
},
headers: ver('20260205'),
});
return data?.data;
}