# Breeze v1.5.2 – OAuth2 Improvements

**URL:** <https://forum.golangbridge.org/t/breeze-v1-5-2-oauth2-improvements/42314>\
**Category:** Releases\
**Created:** [August 2, 2026, 3:38pm UTC](https://forum.golangbridge.org/t/breeze-v1-5-2-oauth2-improvements/42314 "2026-08-02T15:38:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelthaarion](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/nelthaarion/32/17827_2.png) [@nelthaarion](https://forum.golangbridge.org/u/nelthaarion)\
**Post date:** [August 2, 2026, 3:38pm UTC](https://forum.golangbridge.org/t/breeze-v1-5-2-oauth2-improvements/42314/1 "2026-08-02T15:38:23Z")

</div>

Hi Gophers 👋

I’ve just released **Breeze v1.5.2** , focusing on production-ready OAuth2 and middleware performance.

Supported providers:

- Google

- Microsoft

- GitHub

- Discord

Example:

```auto

```

```auto
app.Use(oauth2.New(oauth2.Config{
    Provider: oauth2.Google(),
    ClientID: "...",
    ClientSecret: "...",
}))

```

### Security improvements

- PKCE

- State validation

- **ID Token nonce validation**

- Cookie session expiration validation

- Replay attack protection

Example:

```auto

```

```auto
if tok.IDToken != "" {
    nonce, _ := idTokenNonce(tok.IDToken)

    if subtle.ConstantTimeCompare(
        []byte(nonce),
        []byte(fs.Nonce),
    ) != 1 {
        return ErrNonceMismatch
    }
}

```

### Performance

Besides OAuth2, this release also includes:

- True zero-allocation hot paths

- Lower GC pressure

- Optimized middleware execution

- Automatic pruning in the rate limiter to prevent unbounded memory growth

I’d appreciate any feedback, benchmarks, or code reviews from the Go community.

Repository:

[https://github.com/nelthaarion/breeze](https://github.com/nelthaarion/breeze)

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [October 31, 2026, 3:39pm UTC](https://forum.golangbridge.org/t/breeze-v1-5-2-oauth2-improvements/42314/2 "2026-10-31T15:39:09Z")

</div>

Closed on October 31, 2026, 3:39pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
