Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeJwtBase64(s string) (string, error)
- func DecodeMainTokenPart(s string) (string, error)
- func EncodeJwtBase64(s string) string
- func GenerateHs256Jwt(claims map[string]interface{}, key string, expired int64) string
- func GetCurrentSeconds() int64
- func GetRefreshToken(current int64, expired int64) string
- func GetToken(current int64, expired int64) string
- func LoginByRequestEndPointHandler(ctx *dvcontext.RequestContext) bool
Constants ¶
View Source
const (
Security = "security"
)
Variables ¶
View Source
var SecretKey = "6876jgj6876876hkh8989899"
Functions ¶
func DecodeJwtBase64 ¶ added in v1.0.2
func DecodeMainTokenPart ¶ added in v1.0.2
func EncodeJwtBase64 ¶ added in v1.0.2
func GenerateHs256Jwt ¶ added in v1.0.2
func GetCurrentSeconds ¶ added in v1.0.2
func GetCurrentSeconds() int64
func GetRefreshToken ¶ added in v1.0.2
func LoginByRequestEndPointHandler ¶ added in v1.0.2
func LoginByRequestEndPointHandler(ctx *dvcontext.RequestContext) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.