Complete project cleanup: remove unneeded files, organize static assets, update .gitignore

This commit is contained in:
2026-01-22 14:08:57 -05:00
parent 61f772b976
commit d98a0675e1
71 changed files with 164 additions and 6175 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"time"
"github.com/golang-jwt/jwt/v5"
jwtgo "github.com/golang-jwt/jwt"
"github.com/google/uuid"
"github.com/jackc/pgx/v5/pgtype"
"github.com/labstack/echo/v4"
@@ -155,12 +155,12 @@ func (h *AuthHandler) GetProfile(c echo.Context) error {
}
func (h *AuthHandler) generateJWT(userID string) (string, error) {
claims := jwt.MapClaims{
claims := jwtgo.MapClaims{
"user_id": userID,
"exp": time.Now().Add(24 * time.Hour).Unix(),
"iat": time.Now().Unix(),
}
token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
token := jwtgo.NewWithClaims(jwtgo.SigningMethodHS256, claims)
return token.SignedString(h.jwtKey)
}