Registry / auth / lestrrat-go-jwx

lestrrat-go-jwx

JSON →
librarygogounverified

Package jwx contains tools that deal with the various JWx (JOSE) technologies such as JWT, JWS, JWE, etc in Go.

go get github.com/lestrrat-go/jwx
INSTALL
IMPORT
SIG · LESTRRAT-GO-JWX
L
lestrrat-go-jwx
authgo
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.

jwx
github.com/lestrrat-go/jwx

Parse and validate a JWT token.

package main import ( "fmt" "github.com/lestrrat-go/jwx/jwt" ) func main() { token, err := jwt.Parse([]byte("eyJ...")) if err != nil { panic(err) } fmt.Println(token.Subject()) }
Debug
Known issues
gotchaThe jwx package has multiple subpackages (jwt, jwk, jwe, jws) with different import paths.
fix
Import the specific subpackage you need, e.g., github.com/lestrrat-go/jwx/jwt.
affects: *
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
lestrrat-go-jwx — go get lestrrat-go-jwx · libregistry