This commit is contained in:
Joshua
2024-08-04 09:38:21 -06:00
parent 4d9c1ebcfc
commit 22e14fe11d
2 changed files with 3 additions and 4 deletions
@@ -105,7 +105,7 @@ func createToken(username string) (string, error) {
func verifyToken(tokenString string) error {
token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) {
return secretKey, nil
return key, nil
})
if err != nil {