From 8c61efc321d56420d2ee4f566dfd1d1bc22e3445 Mon Sep 17 00:00:00 2001 From: kanhaiya04 Date: Mon, 19 Feb 2024 02:24:02 +0530 Subject: [PATCH] fixed the local storage error --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index c5502761a0..143ef8c92e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -50,7 +50,7 @@ const authLink = setContext((_, { headers }) => { return { headers: { ...headers, - authorization: 'Bearer ' + localStorage.getItem('token') || '', + authorization: 'Bearer ' + getItem('token') || '', }, }; });