Registry / auth / dgrijalva-jwt-go

dgrijalva-jwt-go

JSON →
library3.2.0+incompatiblegogounverified

A Go implementation of JSON Web Tokens (JWT) for creating and verifying tokens.

go get github.com/dgrijalva/jwt-go
INSTALL
IMPORT
SIG · DGRIJALVA-JWT-GO
D
dgrijalva-jwt-go
authgov3.2.0+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/dgrijalva/jwt-go

Creates and signs a new JWT token.

package main import ( "fmt" "github.com/dgrijalva/jwt-go" ) func main() { token := jwt.New(jwt.SigningMethodHS256) tokenString, _ := token.SignedString([]byte("secret")) fmt.Println(tokenString) }
Debug
Known issues
breakingThis library is unmaintained; consider using github.com/golang-jwt/jwt/v5 instead.
fix
Replace import with github.com/golang-jwt/jwt/v5 and update API calls accordingly.
affects: >=3.0.0
Upgrade
Version history
3.2.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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