Commit 525f7b31 authored by iamhujiebin's avatar iamhujiebin

Update utils_test.go

parent a3abb3f9
......@@ -13,3 +13,8 @@ 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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment