- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseWithStandardClaims (0.14 sec)
-
cmd/jwt_test.go
if err != nil { b.Fatal(err) } b.ResetTimer() b.ReportAllocs() b.RunParallel(func(pb *testing.PB) { for pb.Next() { err = xjwt.ParseWithStandardClaims(token, xjwt.NewStandardClaims(), []byte(creds.SecretKey)) if err != nil { b.Fatal(err) } } }) } func BenchmarkParseJWTMapClaims(b *testing.B) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 22 07:04:48 UTC 2024 - 4.4K bytes - Viewed (0) -
internal/jwt/parser_test.go
} err = ParseWithClaims(data.tokenString, &MapClaims{}, data.keyfunc) case *StandardClaims: if data.tokenString == "" { data.tokenString = standardClaimsToken(claims) } err = ParseWithStandardClaims(data.tokenString, &StandardClaims{}, []byte("HelloSecret")) } if data.valid && err != nil { t.Errorf("Error while verifying token: %T:%v", err, err) } if !data.valid && err == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Nov 05 19:20:08 UTC 2021 - 6K bytes - Viewed (0)