1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 20:07:04 +00:00

update dependencies

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-15 23:29:20 +03:00
parent de4f462198
commit a8a3afea22
186 changed files with 694 additions and 689 deletions

View File

@@ -1,6 +1,6 @@
module github.com/kataras/iris/_examples/dependency-injection/jwt/contrib
go 1.24.3
go 1.25
require (
github.com/iris-contrib/middleware/jwt v0.0.0-20250207234507-372f6828ef8c

View File

@@ -19,7 +19,7 @@ func register(api *iris.APIContainer) {
j := jwt.New(jwt.Config{
// Extract by "token" url parameter.
Extractor: jwt.FromFirst(jwt.FromParameter("token"), jwt.FromAuthHeader),
ValidationKeyGetter: func(token *jwt.Token) (interface{}, error) {
ValidationKeyGetter: func(token *jwt.Token) (any, error) {
return secret, nil
},
SigningMethod: jwt.SigningMethodHS256,