Working DMs with supabase

This commit is contained in:
2025-10-13 10:47:16 +02:00
parent 5f9bb4c877
commit b6a69f82f4
5 changed files with 34 additions and 26 deletions
+1
View File
@@ -13,6 +13,7 @@ export default async function auth(
setMessages: Dispatch<SetStateAction<Message[]>>,
onNewMessage?: (m: Message) => void
) {
console.log("Authenticating with server at:", ip);
const server_auth = (
(await axios.post("/api/auth", { server_ip: ip })).data as any
).token;