mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 11:27:06 +00:00
update dependencies
This commit is contained in:
@@ -36,7 +36,7 @@ func TestJWT(t *testing.T) {
|
||||
verifier.ErrorHandler = func(ctx iris.Context, err error) { // app.OnErrorCode(401, ...)
|
||||
ctx.StopWithError(iris.StatusUnauthorized, err)
|
||||
}
|
||||
middleware := verifier.Verify(func() interface{} { return new(fooClaims) })
|
||||
middleware := verifier.Verify(func() any { return new(fooClaims) })
|
||||
app.Get("/protected", middleware, func(ctx iris.Context) {
|
||||
claims := jwt.Get(ctx).(*fooClaims)
|
||||
ctx.WriteString(claims.Foo)
|
||||
|
||||
Reference in New Issue
Block a user