From e86c5d06108247991e05c44abeec8b2d8220251f Mon Sep 17 00:00:00 2001 From: LordBoBCUP Date: Wed, 18 Nov 2020 13:01:20 +1300 Subject: [PATCH] x --- token.go | 4 ++-- token_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/token.go b/token.go index 0a9c6b0..edf96a0 100644 --- a/token.go +++ b/token.go @@ -131,8 +131,8 @@ func checkInternalClaim(claims []struct { Claim string Value string}, key string, value string) bool { for _, val := range claims { - fmt.Println(val.Claim) - fmt.Println(val.Value) + // fmt.Println(val.Claim) + // fmt.Println(val.Value) if val.Claim == key { if val.Value == value { diff --git a/token_test.go b/token_test.go index aed2360..a4b2416 100644 --- a/token_test.go +++ b/token_test.go @@ -6,7 +6,7 @@ import ( ) -var token string = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImtnMkxZczJUMENUaklmajRydDZKSXluZW4zOCIsImtpZCI6ImtnMkxZczJUMENUaklmajRydDZKSXluZW4zOCJ9.eyJhdWQiOiJhcGk6Ly9iODAxNmRlYS04M2ZkLTQzNjktYjAxZi1lYzk5NDU5YTg3ZTciLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83N2UxY2U3ZS1jZDhjLTQxZjQtYjAyYS0yZTgxOWVkNzgwNjQvIiwiaWF0IjoxNjA1NTgwMzM5LCJuYmYiOjE2MDU1ODAzMzksImV4cCI6MTYwNTU4NDIzOSwiYWNyIjoiMSIsImFpbyI6IkUyUmdZTmoyM0pieFZaUm01c245U2haclhSdkRPUE82ekdPNHY1dktKSjdjV3M2WmNma1pvNWJ5NnBqdUdSUDdiTjI4QXFJa0FRPT0iLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiZjQ1MGQwNTEtMzZiMS00ZmM1LWI5ZjUtYjk2MjJmNjU5MzdjIiwiYXBwaWRhY3IiOiIwIiwiaXBhZGRyIjoiMTIyLjU2LjEwNC4xMTQiLCJuYW1lIjoiQWxleCBEZW1vIEFjY291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