diff --git a/src/apis/client.ts b/src/apis/client.ts index 2e061f69..89c69c48 100644 --- a/src/apis/client.ts +++ b/src/apis/client.ts @@ -44,7 +44,7 @@ const accessToken = localStorage.getItem('EXIT_LOGIN_TOKEN'); instance.interceptors.request.use( (config) => { - if (!localStorage.getItem('EXIT_LOGIN_TOKEN')) { + if (!localStorage.getItem('EXIT_LOGIN_REFRESH_TOKEN')) { window.location.href = '/error'; return config; }