Преглед изворни кода

fix: remove token prefix Bearer

hi-cactus! пре 3 година
родитељ
комит
0a7f01d04f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/components/Upload.tsx

+ 1 - 1
app/components/Upload.tsx

@@ -40,7 +40,7 @@ const Upload: RefForwardingComponent<
   const { name, action, onChange } = props
   const [loading, setLoading] = useState(false)
   const headers = {
-    authorization: `Bearer ${localStorage.getItem('TOKEN')}`
+    authorization: `${localStorage.getItem('TOKEN')}`
   }
   const change = useCallback((info: UploadChangeParam) => {
     const { status, response } = info.file