mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 20:07:04 +00:00
update dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user