Registry / auth / cristalhq-jwt-v3

cristalhq-jwt-v3

JSON →
library3.1.0gogounverified

Package jwt represents JSON Web Token for Go.

go get github.com/cristalhq/jwt/v3
INSTALL
IMPORT
SIG · CRISTALHQ-JWT-V3
C
cristalhq-jwt-v3
authgov3.1.0
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/cristalhq/jwt/v3

Creates and signs a JWT token.

package main import ( "fmt" "github.com/cristalhq/jwt/v3" ) func main() { key := []byte("secret") signer, _ := jwt.NewSignerHS(jwt.HS256, key) token, _ := jwt.NewBuilder(signer).Build(jwt.Claims{}) fmt.Println(string(token.Raw())) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
cristalhq-jwt-v3 — go get cristalhq-jwt-v3 · libregistry