Working DMs with supabase
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user