mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
remove JSON.stringify from authorization tokens
This commit is contained in:
parent
6d7f56fe58
commit
cdd8037d5f
6 changed files with 14 additions and 23 deletions
|
|
@ -34,10 +34,7 @@ const EditSystem = ({
|
|||
body: JSON.stringify(data),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Authorization: JSON.stringify(localStorage.getItem("token")).slice(
|
||||
1,
|
||||
-1
|
||||
),
|
||||
Authorization: localStorage.getItem("token"),
|
||||
},
|
||||
})
|
||||
.then((res) => res.json())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue