You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package crypter
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test_VerifyToken(t *testing.T) {
|
|
token := "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI5NzRjNzM1NjFhZTU0MjczIiwiaWF0IjoxNzExNzA1MTgwLCJqdGkiOiI3YzUzNGEyNi1jOTVmLTQ3NmQtYThjYS1lY2FjYTMxN2I1NDQifQ.h9JOqQOPN-xzTD7X5YPlS6YyshcixV329lEo_sX8tGw"
|
|
secret := "0f82962e24be4274a3b852f2d5b26f7e"
|
|
client_id := "974c73561ae54273"
|
|
ret, err := VerifyToken(token, client_id, secret, 600)
|
|
|
|
t.Log(ret)
|
|
t.Log(err)
|
|
}
|