Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderAlgRS256 HeaderAlg = "RS256" HeaderTypJWT HeaderTyp = "JWT" )
Variables ¶
Functions ¶
Types ¶
type Claims ¶
type Claims struct { RegisteredClaims ExtraClaims map[string]interface{} }
Claims stores RegisteredClaims and ExtraClaims
func ClaimsFrom ¶
ClaimsFrom construct Claims from encoded token
type Header ¶
Header stores header component of JWT
func HeaderFrom ¶
HeaderFrom construct Header from encoded token
Click to show internal directories.
Click to hide internal directories.