Registry / auth / golang-jwt-jwt-v5

golang-jwt-jwt-v5

JSON →
library5.3.1gogounverified

Package jwt is a Go implementation of JSON Web Tokens.

go get github.com/golang-jwt/jwt/v5
INSTALL
IMPORT
SIG · GOLANG-JWT-JWT-V5
G
golang-jwt-jwt-v5
authgov5.3.1
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/v5

Create and sign a JWT token

package main import ( "fmt" "github.com/golang-jwt/jwt/v5" ) func main() { token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{ "foo": "bar", }) tokenString, _ := token.SignedString([]byte("secret")) fmt.Println(tokenString) }
Debug
Known issues
breakingBreaking changes from v4 to v5: removed deprecated functions and changed validation behavior
fix
Migrate from v4 to v5 using the migration guide
affects: >=5.0.0
Upgrade
Version history
5.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
OpenAI (training)
1
Resources
golang-jwt-jwt-v5 — go get golang-jwt-jwt-v5 · libregistry