Hello Gophers ![]()
I’ve simply launched Breeze v1.5.2, specializing in production-ready OAuth2 and middleware efficiency.
Supported suppliers:
-
Google
-
Microsoft
-
GitHub
-
Discord
Instance:
app.Use(oauth2.New(oauth2.Config{
Supplier: oauth2.Google(),
ClientID: "...",
ClientSecret: "...",
}))
Safety enhancements
Instance:
if tok.IDToken != "" {
nonce, _ := idTokenNonce(tok.IDToken)
if delicate.ConstantTimeCompare(
[]byte(nonce),
[]byte(fs.Nonce),
) != 1 {
return ErrNonceMismatch
}
}
Efficiency
Moreover OAuth2, this launch additionally contains:
-
True zero-allocation sizzling paths
-
Decrease GC stress
-
Optimized middleware execution
-
Automated pruning within the charge limiter to stop unbounded reminiscence development
I’d respect any suggestions, benchmarks, or code opinions from the Go neighborhood.
Repository:

