package
0.0.67
Repository: https://github.com/kunitsucom/util.go.git
Documentation: pkg.go.dev

# Functions

New Example: token, err := jwt.New( jws.WithHMACKey([]byte("YOUR_HMAC_KEY"), jose.NewHeader(jwa.HS256, jose.WithType("JWT")), jwt.NewClaimsSet(jwt.WithSubject("userID"), jwt.WithExpirationTime(time.Now().Add(1*time.Hour))), ).
NewClaimsSet Example: claimsSet := jwt.NewClaimsSet( jwt.WithSubject("userID"), jwt.WithExpirationTime(time.Now().Add(1*time.Hour)), ).
Sign Example: signingInput, signatureEncoded, err := jwt.Sign( jws.WithHMACKey([]byte("YOUR_HMAC_KEY"), jose.NewHeader(jwa.HS256, jose.WithType("JWT")), jwt.NewClaimsSet(jwt.WithSubject("userID"), jwt.WithExpirationTime(time.Now().Add(1*time.Hour))), ).
Verify Example: header, claimsSet, err := jwt.Verify( jws.UseHMACKey([]byte("YOUR_HMAC_KEY"), token, ).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ClaimsSet - ref.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author