coreos / go-oidc

A Go OpenID Connect client.
Apache License 2.0
1.96k stars 395 forks source link

oidc: don't parse JWT twice #347

Closed ericchiang closed 2 years ago

ericchiang commented 2 years ago

Fixes #346

% benchstat ~/old.txt ~/new.txt 
name      old time/op  new time/op  delta
Verify-8  35.5µs ± 3%  32.6µs ± 2%  -8.30%  (p=0.000 n=10+10)