import ( "github.com/tsuru/tsuru.auth/tokenuser" "time" ) func main() { user := tokenuser.User{ Email: "[email protected]", Name: "Test User", Token: "example_token", } jwtToken, err := user.GenerateJWT(time.Now().Add(time.Hour)) if err != nil { panic(err) } verifiedUser, valid := tokenuser.VerifyJWT(jwtToken) if !valid { panic("Invalid token") } }In this example, a tokenized user is created with an email, name, and token. Then, a JWT is generated for that user that is valid for one hour. Finally, the JWT is verified and the user data is extracted if the token is valid.