Use token from cookies directly

This commit is contained in:
2025-09-27 14:31:17 +02:00
parent aec851f0d1
commit 72171c4dfb
5 changed files with 24 additions and 20 deletions
+1 -4
View File
@@ -23,10 +23,7 @@ export default function Server() {
async function auth() {
const server_auth = (
(
await axios.post("/api/auth", {
server_ip: ip,
session_token: Cookies.get("token"),
})
await axios.post("/api/auth", { server_ip: ip })
).data as any
).token;