add jwt authentication, and fix cours for next js

This commit is contained in:
Tulyaganov Shuhrat committed 2023-05-02 11:02:06 +03:00
1 parent 3026f89f2e
commit 05b8d55d0e
17 files changed
+471 -64

No files matched your search

+9 -1
View File
@@ -5,6 +5,14 @@ type User struct {
Login string `json:"login"`
Email string `json:"email"`
Password string `json:"password"`
Avatar_Url string
Avatar_Url *string
AccesToken string
PermisionLVL int
}
type UserData struct {
Login string
Email string
PermisionLVL int
AccesToken string
}