From 74158ebb32cb478ed68f38e7f38a6d59b999b1c6 Mon Sep 17 00:00:00 2001 From: Huxley Berry <134905354+HuxleyBerry@users.noreply.github.com> Date: Sat, 18 Jan 2025 12:33:57 +0800 Subject: [PATCH] add slash (#121) --- client/src/utils/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/server.ts b/client/src/utils/server.ts index 1b31422..e82cef0 100644 --- a/client/src/utils/server.ts +++ b/client/src/utils/server.ts @@ -35,7 +35,7 @@ server.interceptors.response.use( const oldAccessToken = userStore.accessToken // Try to refresh token using HTTP request - const response = await axios.post(`${import.meta.env.VITE_BACKEND_URL}/auth/refresh`, { + const response = await axios.post(`${import.meta.env.VITE_BACKEND_URL}/auth/refresh/`, { refreshToken: userStore.refreshToken, })