switch from req.session.jwt to cookies

This commit is contained in:
2025-02-03 04:02:52 +03:00
parent c0ee036530
commit 3a742b1f34
12 changed files with 247 additions and 26 deletions

View File

@@ -4,6 +4,9 @@ html
title Личный кабинет | Чат
link(href="css/index.css" rel="stylesheet")
body
script(src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer")
script(type="text/javascript" src="js/chat.js")
iframe(name="hiddenFrame" style="position:absolute; top:-1px; left:-1px; width:1px; height:1px;")
include header.pug
@@ -11,4 +14,8 @@ html
div(class="content")
h1 Чат
div(class="chat-container")
p Пока что тут пусто, но скоро будет кое-что интересное!
div(class="messages-container")
div(class="input-container")
input(type="text" id="chat-input")
button(id="send-message-button") Отправить