Documentation ¶
Overview ¶
Package token implements methods to manage PASETO tokens.
Index ¶
Constants ¶
View Source
const ( // RoleAdmin has complete access to all the resources. RoleAdmin = "admin" // RoleDaemon runs on every target node and takes orders from the // control station. RoleDaemon = "daemon" )
Variables ¶
View Source
var ( // DefaultExpiry is the default token expiration time if nothing is // provided. DefaultExpiry = time.Now().Add(time.Minute * 5) ErrInvalidNB = errors.New("expiry cannot be shorter than NB") ErrMissingBody = errors.New("missing body in params") ErrMissingSecretKey = errors.New("missing secret key in params") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.