npm better-auth 1.8.0-beta.6
v1.8.0-beta.6

6 hours ago

Important

Action required

  • fix(oauth-provider)!: reject repeated parameters in form POST authorization requests (#12261)

    A form-encoded POST to /oauth2/authorize now follows the same repeated-parameter rules as a GET request. A standard parameter sent more than once, such as state=a&state=b, returns invalid_request with "state must not appear more than once". Before, the provider used the last value and could issue a code. A repeated resource now keeps every value instead of only the last one. A repeated custom parameter, such as organization, reaches postLogin.consentReferenceId and the signed oauth_query with every value. Clients that send each standard parameter once are unaffected.

@better-auth/oauth-provider

❗ Breaking Changes

  • fix(oauth-provider)!: reject repeated parameters in form POST authorization requests (#12261)

Features

  • feat(oauth-provider): bind a client's own token exchange to its DPoP key (#12262)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@gustavovalverde

Full changelog: v1.8.0-beta.5...v1.8.0-beta.6

Don't miss a new better-auth release

NewReleases is sending notifications on new releases.