{"id":53521,"library":"go-chi-jwtauth","title":"Chi JWT Auth","description":"JWT authentication middleware for the Chi router.","status":"active","version":"4.0.4+incompatible","language":"go","source_language":null,"source_url":"https://github.com/go-chi/jwtauth","tags":["jwt","authentication","middleware","chi","web"],"install":[{"cmd":"go get github.com/go-chi/jwtauth","lang":"bash","label":"Install github.com/go-chi/jwtauth"}],"dependencies":[],"imports":[{"symbol":"jwtauth","correct":"github.com/go-chi/jwtauth"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"github.com/go-chi/chi/v5\"\n\t\"github.com/go-chi/jwtauth\"\n)\n\nfunc main() {\n\tr := chi.NewRouter()\n\ttokenAuth := jwtauth.New(\"HS256\", []byte(\"secret\"), nil)\n\tr.Use(jwtauth.Verifier(tokenAuth))\n\tr.Get(\"/protected\", func(w http.ResponseWriter, r *http.Request) {\n\t\t_, claims, _ := jwtauth.FromContext(r.Context())\n\t\tw.Write([]byte(\"Protected area. claims: %v\", claims))\n\t})\n\thttp.ListenAndServe(\":3000\", r)\n}","lang":"go","description":"Minimal Chi router with JWT authentication middleware."},"warnings":[],"env_vars":null,"search_vec":"'auth':3 'authent':5,12 'chi':1,9,14 'jwt':2,4,11 'middlewar':6,13 'router':10 'web':15","created_at":"2026-06-15T07:42:57.316139+00:00","updated_at":"2026-06-15T07:42:57.316139+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-chi/jwtauth","github":"https://github.com/go-chi/jwtauth","docs":"https://pkg.go.dev/github.com/go-chi/jwtauth#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}