Documentation
¶
Overview ¶
Package jwt implements encoding/decoding for JSON Web Token claims (RFC7519).
If you need to handle authentication tokens in common use cases, the KISStokens/opinionated package might be a better fit. If you do have special requirements exceeding the capabilities of KISStokens/opinionated, this package is intended to be used together with the KISStokens/jws package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { StandardClaims CustomClaims map[string]interface{} }
Claims represents the claims of a JSON Web Token
func ParseClaims ¶
ParseClaims parses JWT Claims from the given JSON input
type StandardClaims ¶
type StandardClaims struct { Issuer *string Subject *string Audience []string ExpirationTime *time.Time NotBefore *time.Time IssuedAt *time.Time JwtId *string }
StandardClaims represents the registered JWT claims as defined in RFC7519 When parsing, claims that were not present are set to nil.