Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customeclaims ¶
type TokenGeneration ¶
type TokenGeneration struct {
// contains filtered or unexported fields
}
func NewTokenGeneration ¶
func NewTokenGeneration() *TokenGeneration
func (*TokenGeneration) CheckExp ¶
func (tkg *TokenGeneration) CheckExp(token string) bool
This method will check a token is expired with current time Return true if the token still no expired
func (TokenGeneration) CheckValib ¶
func (tkg TokenGeneration) CheckValib(token string) bool
func (*TokenGeneration) CreateToken ¶
func (*TokenGeneration) GetPayload ¶
func (tkg *TokenGeneration) GetPayload(token string) Customeclaims
Click to show internal directories.
Click to hide internal directories.