catch invalid signature
This commit is contained in:
		@@ -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 = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user