13 lines
353 B
Go
13 lines
353 B
Go
|
package basic
|
||
|
|
||
|
import (
|
||
|
"fusenapi/utils/auth"
|
||
|
"log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestRequestParse(t *testing.T) {
|
||
|
a, us, err := auth.TParseJwtTokenHeader[auth.UserInfo]("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjQ0NzE1MzUsImd1ZXN0X2lkIjo0OCwiaWF0IjozMTUzNjAwMCwidXNlcl9pZCI6MH0.jsIpl9CeQdGHRERPByVtMlPLxaxzBaorJsmtfQqbgVc")
|
||
|
log.Println(a, us, err)
|
||
|
}
|