add jwt authentication, and fix cours for next js
This commit is contained in:
1 parent
3026f89f2e
commit
05b8d55d0e
17 files changed
+471
-64
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user