feat: add simple jwt middleware and update oauth handlers
All checks were successful
Backend ci / build (push) Successful in 3m44s

This commit is contained in:
d3m0k1d
2026-02-10 21:26:48 +03:00
parent 7822da7e5c
commit a58e0f4451
8 changed files with 142 additions and 22 deletions

View File

@@ -17,3 +17,11 @@ type PostCreate struct {
Title string `json:"title"`
Content string `json:"content"`
}
type User struct {
ID int `db:"id"`
Email string `db:"email"`
GithubID string `db:"github_id"`
GithubLogin string `db:"github_login"`
AvatarURL string `db:"avatar_url"`
}