fusenapi/utils/basic/request_parse_test.go

13 lines
321 B
Go
Raw Normal View History

2023-08-25 07:37:35 +00:00
package basic
import (
"fusenapi/utils/auth"
"log"
"testing"
)
func TestRequestParse(t *testing.T) {
2023-08-25 08:44:10 +00:00
a, us, err := auth.TParseJwtTokenHeader[auth.UserInfo]("saTGjruwq7SG4vnQVEo3vsZvbfhzx8zZ3zWA+8nWVdid5tssnYQNECiP+pYCK6YhZ+LRH8m7f7JXrgyqtpYQMOhVOcNWTYAClk0Jnft6+QIPegzY9+v4k7eVMiWf5c/x")
2023-08-25 07:37:35 +00:00
log.Println(a, us, err)
}