feat: update callback handler and repository for user
All checks were successful
Backend ci / build (push) Successful in 3m23s
All checks were successful
Backend ci / build (push) Successful in 3m23s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user