mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
small pattern fixes
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user