Run go fix tool. Refactor

This commit is contained in:
2026-03-04 11:07:05 +01:00
parent 55475804f4
commit 0fa5d8bb8d
3 changed files with 7 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ func authHandler(next http.Handler, publicKey ed25519.PublicKey) http.Handler {
// In case expiration and so on are specified, the Parse function
// already returns an error for expired tokens.
var err error
token, err = jwt.Parse(rawtoken, func(t *jwt.Token) (interface{}, error) {
token, err = jwt.Parse(rawtoken, func(t *jwt.Token) (any, error) {
if t.Method != jwt.SigningMethodEdDSA {
return nil, errors.New("only Ed25519/EdDSA supported")
}