Documentation ¶ Index ¶ func Decode(token string, claims interface{}) error func ExpiresIn(token string) (time.Duration, error) func JWT(privateKey string, claims interface{}, maxAge time.Duration) (string, error) func KeyPair() (string, string, error) func Verify(token string, publicKey string, claims interface{}) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(token string, claims interface{}) error func ExpiresIn ¶ added in v0.2.11 func ExpiresIn(token string) (time.Duration, error) func JWT ¶ func JWT(privateKey string, claims interface{}, maxAge time.Duration) (string, error) func KeyPair ¶ func KeyPair() (string, string, error) func Verify ¶ added in v0.2.11 func Verify(token string, publicKey string, claims interface{}) error Types ¶ This section is empty. Source Files ¶ View all Source files token.go Click to show internal directories. Click to hide internal directories.