package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Mar 17, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Config sets the secret and issuer of the default GWT
IsExpires returns a boolean indicating whether the error is known to
report that a gwt token is expired.
func ParseToken(tokenString string, v interface{}) (err error)
ParseToken parses a token
SignToken creates a token with expires
Channel is a payload container includes expires and issuer for GWT
GWT is an api token rsa crypto
func (gwt *GWT) ParseToken(tokenString string, v interface{}) (err error)
ParseToken parses a token
SignToken creates a token with expires
Source Files
¶
Click to show internal directories.
Click to hide internal directories.