Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { // Identifies the principal that issued the JWT. Issuer string // Identifies the principal that is the subject of the JWT. Subject string // Identifies the recipients that the JWT is intended for. Audience string // Identifies the expiration time on or after which the JWT MUST NOT be accepted // for processing. Expiry time.Time // Identifies the time before which the JWT MUST NOT be accepted for processing. // // It is optional. NotBefore time.Time // Identifies the time at which the JWT was issued. // // It is optional, as it will be filled with the current timestamp when signing. IssuedAt time.Time }
func (*Claims) SetSubjectInt ¶
func (Claims) SubjectInt ¶
type CustomClaims ¶
type CustomClaims struct{}
type CustomClaimsImplementation ¶
type CustomClaimsImplementation interface {
// contains filtered or unexported methods
}
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewHS256Base64 ¶ added in v1.75.0
type InvalidTokenError ¶
type InvalidTokenError struct {
Reason string
}
func (*InvalidTokenError) Error ¶
func (err *InvalidTokenError) Error() string
Click to show internal directories.
Click to hide internal directories.