Registry / web-framework / gofiber-contrib-jwt

gofiber-contrib-jwt

JSON →
library1.1.2gogounverified

JWT authentication middleware for the Fiber web framework, providing token validation and user context extraction.

go get github.com/gofiber/contrib/jwt
INSTALL
IMPORT
SIG · GOFIBER-CONTRIB-JW
G
gofiber-contrib-jwt
web-frameworkgov1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jwt
github.com/gofiber/contrib/jwt

Minimal Fiber app with JWT middleware protecting a route.

package main import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/contrib/jwt" ) func main() { app := fiber.New() app.Use(jwtware.New(jwtware.Config{ SigningKey: jwtware.SigningKey{Key: []byte("secret")}, })) app.Get("/protected", func(c *fiber.Ctx) error { return c.SendString("Hello, JWT!") }) app.Listen(":3000") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
gofiber-contrib-jwt — go get gofiber-contrib-jwt · libregistry