Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenGenerator ¶
type TokenGenerator struct {
paseto.GenTokenFunc
}
func NewTokenGenerator ¶
func NewTokenGenerator(asymmetricKey string, implicit []byte) (*TokenGenerator, error)
func (*TokenGenerator) CreateToken ¶
func (g *TokenGenerator) CreateToken(claims *paseto.StandardClaims) (token string, err error)
Click to show internal directories.
Click to hide internal directories.