Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
// contains filtered or unexported fields
}
Claims is a simple claims implementation that can be used to store and retrieve claims data.
func ParseTokenByPublicPEM ¶
Parse a token using the public pem and return the claims.
func ParseTokenBySecret ¶
Parse a token using the secret and return the claims.
func ParseTokenUnverified ¶
Parse a token without secret or pem, then return the claims.
func (*Claims) ToTokenByPrivatePEM ¶
Generate a token from the claims using the private pem.
Click to show internal directories.
Click to hide internal directories.