diff --git a/packages/web-pkg/src/composables/authContext/useRequest.ts b/packages/web-pkg/src/composables/authContext/useRequest.ts index 77c27318592..4a98685dd80 100644 --- a/packages/web-pkg/src/composables/authContext/useRequest.ts +++ b/packages/web-pkg/src/composables/authContext/useRequest.ts @@ -33,7 +33,7 @@ export function useRequest(options: RequestOptions = {}): RequestResult { config: AxiosRequestConfig = {} ): Promise => { let httpClient - if (unref(accessToken)) { + if (!unref(publicToken) && unref(accessToken)) { httpClient = clientService.httpAuthenticated(unref(accessToken)) } else { httpClient = clientService.httpUnAuthenticated