package utils import (
"git.hilo.cn/hilo-common/script/utils/jwt"
"testing" ) func TestTestCommon(t *testing.T) {
TestCommon()
}
func TestJwt(t *testing.T) {
token, _ := jwt.GenerateToken(4051, "96f6c25208a346b8871d5ef1a74a7fe3", "hiloApi")
t.Logf(token) }
func TestJwtParse(t *testing.T) { c, err := jwt.ParseToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjQyNDAyNjEsIkV4dGVybmFsSWQiOiI0MTIwOWU5NTE0ZDI0ODQwYTliNTMxMDgyMWViNjRkNiIsImV4cCI6MTY5MjI2MTIxNiwiaXNzIjoiaGlsb0FwaSJ9.2ru292Z1q8p87Chzp5DWrR1hMHO3sQcD1X3QNwOio2U") println(c, err) }