small pattern fixes

This commit is contained in:
Fran Jurmanović
2021-06-22 17:18:48 +02:00
parent 2992d433fa
commit 830fa65f8a
4 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ func CheckToken(tokenString string) (*jwt.Token, error) {
_, ok := token.Method.(*jwt.SigningMethodHMAC)
var err error
if !ok {
err = errors.New("Invalid token")
err = errors.New("invalid token")
}
return []byte(secret), err
})