Fix spellcheck and enable more dirs (#3603)

This commit is contained in:
qwerty287
2024-04-09 09:04:53 +02:00
committed by GitHub
parent 8e45ddd58b
commit c9a3bfb321
10 changed files with 26 additions and 17 deletions

View File

@@ -139,19 +139,19 @@ func keyFunc(token *Token, fn SecretFunc) jwt.Keyfunc {
// extract the token kind and cast to
// the expected type.
kindv, ok := claims["type"]
kind, ok := claims["type"]
if !ok {
return nil, jwt.ErrInvalidType
}
token.Kind, _ = kindv.(string)
token.Kind, _ = kind.(string)
// extract the token value and cast to
// expected type.
textv, ok := claims["text"]
text, ok := claims["text"]
if !ok {
return nil, jwt.ErrInvalidType
}
token.Text, _ = textv.(string)
token.Text, _ = text.(string)
// invoke the callback function to retrieve
// the secret key used to verify