# @flink-app/oauth-plugin

## 1.0.0

### Minor Changes

-   Align minor version, from now all packages in monorepo will have same version

### Patch Changes

-   ee21c29: Normalize query parameters to predictable string types

    Query parameters are now automatically normalized to `string | string[]` types before reaching handlers:

    -   Single values: converted to strings (e.g., `?page=1` → `{ page: "1" }`)
    -   Repeated parameters: converted to string arrays (e.g., `?tag=a&tag=b` → `{ tag: ["a", "b"] }`)
    -   All types (numbers, booleans, etc.) from Express parser are converted to strings

    **Breaking Change (Minor):**

    -   `Query` type changed from `{ [x: string]: string | string[] | undefined }` to `Record<string, string | string[]>`
    -   `Params` type changed from `Request["params"]` to explicit `Record<string, string>`
    -   Removed `undefined` from query/param types since normalization ensures values are never undefined
    -   Updated OAuth and OIDC plugin query type definitions to satisfy new Query constraint

    This ensures predictable query and path parameter handling regardless of Express parser configuration. Handlers can reliably parse string values as needed using `Number()`, `parseInt()`, boolean comparisons, etc.

## 0.14.1

### Patch Changes

-   fix: restore compatibility between core framework and plugins after 0.14.0 release

## 0.13.1

### Patch Changes

-   Fixed invalid types and improve typescript error message during schema compilation

## 0.13.0

### Minor Changes

-   Migrate to pnpm and streamlines build process.
