code refactoring, updated dockerfile

This commit is contained in:
2023-06-23 09:21:09 +02:00
parent d6c0646756
commit e69829fcef
4 changed files with 11 additions and 6 deletions

View File

@@ -164,7 +164,7 @@ func Login(ctx *fiber.Ctx) error {
"expiresAt": time.Now().Add(time.Minute * 30),
})
tokenString, err := token.SignedString([]byte(os.Getenv("JWTSECRET")))
tokenString, err := token.SignedString([]byte(os.Getenv("JWT_SECRET")))
if err != nil {
return ctx.SendStatus(fiber.StatusInternalServerError)
}