feat: update callback handler and repository for user
All checks were successful
Backend ci / build (push) Successful in 3m23s

This commit is contained in:
d3m0k1d
2026-02-10 22:45:27 +03:00
parent a58e0f4451
commit 4a5c42ca06
6 changed files with 63 additions and 7 deletions

View File

@@ -14,9 +14,9 @@ var jwtSecret = []byte(os.Getenv("JWT_SECRET"))
func GenerateJWT(user storage.User) (string, error) {
token := jwt.NewWithClaims(jwt.SigningMethodHS512, jwt.MapClaims{
"id": user.ID,
"email": user.Email,
"login": user.GithubLogin,
"id": user.ID,
"email": user.Email,
"github_id": user.GithubID,
})
tokenString, err := token.SignedString(jwtSecret)
if err != nil {