{"id":49973,"library":"golang-jwt-jwt-v4","title":"Go JWT","description":"Package jwt is a Go implementation of JSON Web Tokens.","status":"active","version":"4.5.2","language":"go","source_language":null,"source_url":"https://github.com/golang-jwt/jwt","tags":["jwt","authentication","security","tokens"],"install":[{"cmd":"go get github.com/golang-jwt/jwt/v4","lang":"bash","label":"Install github.com/golang-jwt/jwt/v4"}],"dependencies":[],"imports":[{"symbol":"jwt","correct":"github.com/golang-jwt/jwt/v4"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/golang-jwt/jwt/v4\"\n)\n\nfunc main() {\n\ttoken := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{\n\t\t\"foo\": \"bar\",\n\t})\n\ttokenString, err := token.SignedString([]byte(\"secret\"))\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(tokenString)\n}","lang":"go","description":"Create and sign a JWT token"},"warnings":[{"fix":"Update imports to github.com/golang-jwt/jwt/v4 and adjust code for new API","message":"Breaking changes from v3 to v4: removed deprecated functions and changed validation behavior","severity":"breaking","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'authent':14 'go':1,7 'implement':8 'json':10 'jwt':2,4,13 'packag':3 'secur':15 'token':12,16 'web':11","created_at":"2026-06-15T04:35:24.700307+00:00","updated_at":"2026-06-15T04:35:24.700307+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/golang-jwt/jwt","github":"https://github.com/golang-jwt/jwt","docs":"https://pkg.go.dev/github.com/golang-jwt/jwt/v4#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth"],"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}}