Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidKID = TokenError{"Invalid key identifier"} ErrInvalidISS = TokenError{"Invalid Team ID"} ErrInvalidPEM = TokenError{"Invalid PEM file"} ErrInvalidPEMType = TokenError{"Invalid PEM type"} ErrMissingPEM = TokenError{"PEM signature is missing"} )
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { sync.Mutex TeamID string KeyID string IssuedAt int64 SigningKey *ecdsa.PrivateKey JWT string }
func (*Token) RefreshJWT ¶
Refresh JWT value if token is expired
type TokenError ¶
type TokenError struct {
Reason string
}
func (TokenError) Error ¶
func (err TokenError) Error() string
Click to show internal directories.
Click to hide internal directories.