catch invalid signature

This commit is contained in:
2025-02-07 00:12:31 +03:00
parent 91d6e64f18
commit 46c475593b
2 changed files with 11 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ $(document).ready(async () => {
const sendData = async () => {
const jwt = getCookie("jwt");
const author = await fetch(`/api/getUsername`)
const author = (await fetch(`/api/getUsername`)).text()
const content = $("#chat-input").val();
const message = {