Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotValidYet is when a token is used prior to the issue date. ErrNotValidYet = errors.New("token is not valid yet") // ErrExpired is when a token is used after the expiration date. ErrExpired = errors.New("token is expired") // ErrMalformed is when a token is malformed. ErrMalformed = errors.New("token is malformed") // ErrSignatureInvalid is when a signature is invalid. ErrSignatureInvalid = errors.New("signature is invalid") // ErrAudienceInvalid is when the audience is invalid. ErrAudienceInvalid = errors.New("audience is invalid") // ErrExpirationInvalid is when the expiration is invalid. ErrExpirationInvalid = errors.New("expiration is invalid") // ErrIssuedAtInvalid is when the issued date is invalid. ErrIssuedAtInvalid = errors.New("issue date is invalid") // ErrNotBeforeInvalid is when the before date is invalid. ErrNotBeforeInvalid = errors.New("before date is invalid") // ErrSecretTooShort is when the secret is not long enough. ErrSecretTooShort = errors.New("secret must be 256 bit (32 bytes)") )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Secret SecretKey `json:"Secret"` // contains filtered or unexported fields }
Configuration contains the JWT dependencies.
func (*Configuration) SetClock ¶
func (c *Configuration) SetClock(clock IClock)
SetClock will set the clock.
Click to show internal directories.
Click to hide internal directories.