Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken error = fmt.Errorf("invalid token") ErrExpiredOrNotReady error = fmt.Errorf("token is either expired or not ready to use") )
Errors.
Functions ¶
This section is empty.
Types ¶
type JSONWebToken ¶
type JSONWebToken struct {
// contains filtered or unexported fields
}
JSONWebToken is a concrete struct of json web token.
func NewJSONWebToken ¶
func NewJSONWebToken(privateKey, publicKey []byte) *JSONWebToken
NewJSONWebToken is a constructor.
Click to show internal directories.
Click to hide internal directories.