🐛 fixes a bug not using the JWT Key correctly
This commit is contained in:
		@@ -23,7 +23,8 @@ func Authenticate() gin.HandlerFunc {
 | 
			
		||||
			if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok {
 | 
			
		||||
				return nil, fmt.Errorf("unexpected signing method")
 | 
			
		||||
			}
 | 
			
		||||
			return config.GlobalConfig.JwtKey, nil
 | 
			
		||||
			jwtKeyBytes := []byte(config.GlobalConfig.JwtKey)
 | 
			
		||||
			return jwtKeyBytes, nil
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user