{"id":53959,"library":"dgrijalva-jwt-go-v3","title":"JWT Go Implementation v3","description":"A Go implementation of JSON Web Tokens (JWT) for creating and verifying tokens.","status":"active","version":"3.2.0","language":"go","source_language":null,"source_url":"https://github.com/dgrijalva/jwt-go","tags":["jwt","json-web-token","authentication","security"],"install":[{"cmd":"go get gopkg.in/dgrijalva/jwt-go.v3","lang":"bash","label":"Install gopkg.in/dgrijalva/jwt-go.v3"}],"dependencies":[],"imports":[{"symbol":"jwt","correct":"gopkg.in/dgrijalva/jwt-go.v3"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"gopkg.in/dgrijalva/jwt-go.v3\"\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\tpanic(err)\n\t}\n\tfmt.Println(tokenString)\n}","lang":"go","description":"Create and sign a JWT token"},"warnings":[{"fix":"Migrate to github.com/golang-jwt/jwt/v5 which is actively maintained and patched.","message":"This library has known security vulnerabilities (CVE-2020-26160); use github.com/golang-jwt/jwt/v5 instead.","severity":"breaking","affected_versions":">=3.0.0 <4.0.0"}],"env_vars":null,"search_vec":"'authent':23 'creat':14 'go':2,6 'implement':3,7 'json':9,20 'json-web-token':19 'jwt':1,12,18 'secur':24 'token':11,17,22 'v3':4 'verifi':16 'web':10,21","created_at":"2026-06-15T08:04:29.839706+00:00","updated_at":"2026-06-15T08:04:29.839706+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/dgrijalva/jwt-go","github":"https://github.com/dgrijalva/jwt-go","docs":"https://pkg.go.dev/gopkg.in/dgrijalva/jwt-go.v3#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","serialization"],"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}}