create support early auth functions

This commit is contained in:
GitProtogen
2026-03-11 08:51:33 +01:00
parent 1a103f8173
commit be0d46e256
7 changed files with 105 additions and 65 deletions
+16
View File
@@ -0,0 +1,16 @@
package main
import "github.com/coder/websocket"
type User struct {
Id uint
Name string
Password string
Color string
IsPasswordHashed bool
}
type authConnection struct {
connection *websocket.Conn
user User
}