Registry / auth / golang-jwt-jwt

golang-jwt-jwt

JSON →
library3.2.2+incompatiblegogounverified

Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html

go get github.com/golang-jwt/jwt
INSTALL
IMPORT
SIG · GOLANG-JWT-JWT
G
golang-jwt-jwt
authgov3.2.2+incompatible
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/golang-jwt/jwt

Create and sign a JWT token with HMAC-SHA256.

package main import ( "fmt" "github.com/golang-jwt/jwt" ) func main() { token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{ "foo": "bar", }) tokenString, _ := token.SignedString([]byte("secret")) fmt.Println(tokenString) }
Debug
Known issues
breakingv3.2.2+incompatible is the last v3 release; v4 and v5 have breaking changes.
fix
Use v5 for new projects; migrate from v3 by updating import paths and API calls.
affects: >=3.0.0 <4.0.0
Upgrade
Version history
3.2.2+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
golang-jwt-jwt — go get golang-jwt-jwt · libregistry