Documentation ¶
Index ¶
- func GetJwtToken(secretKey string, iat, seconds int64, params map[string]any) (string, error)
- func Init(configs ...Config)
- type Config
- type GoJwt
- func (c *GoJwt) GeneratedTokens(params map[string]any) (accessToken, refreshToken string, expires int64, err error)
- func (c *GoJwt) IsValidToken(tokenString string) bool
- func (c *GoJwt) ParseToken(tokenString string) (map[string]interface{}, error)
- func (c *GoJwt) RefreshAccessToken(refreshTokenStr string) (accessToken, refreshToken string, expires int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJwtToken ¶
Types ¶
type GoJwt ¶
type GoJwt struct {
Config Config
}
func (*GoJwt) GeneratedTokens ¶
func (*GoJwt) IsValidToken ¶
func (*GoJwt) ParseToken ¶
解析token
Click to show internal directories.
Click to hide internal directories.